Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/api-doc-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMike Norman <mike.norman@xamarin.com>2017-07-08 23:11:55 +0300
committerJoel Martinez <joelmartinez@gmail.com>2017-07-11 18:23:38 +0300
commitd938cee866a7e94c02ce71fd3352e67f24b8da59 (patch)
tree84a730f7b89d58c85249270f9a1882c7afc8a7e3 /tools
parente0dfe2e3b175d2dcaae6dfa2663494c3d143c569 (diff)
Further refactoring. Added NUnit project and tests.
Diffstat (limited to 'tools')
-rw-r--r--tools/DocStat/DocStat.Tests/DocStat.Tests.csproj62
-rw-r--r--tools/DocStat/DocStat.Tests/EcmaXmlHelperTests.cs49
-rw-r--r--tools/DocStat/DocStat.Tests/TestData/currentxml/newType.xml1
-rw-r--r--tools/DocStat/DocStat.Tests/TestData/currentxml/t1.xml489
-rw-r--r--tools/DocStat/DocStat.Tests/TestData/oldxml/t1.xml423
-rw-r--r--tools/DocStat/DocStat.Tests/packages.config4
-rw-r--r--tools/DocStat/DocStat.sln6
-rw-r--r--tools/DocStat/DocStat/CommandUtils.cs48
-rw-r--r--tools/DocStat/DocStat/DocStat.csproj3
-rw-r--r--tools/DocStat/DocStat/EcmaXmlHelper.cs (renamed from tools/DocStat/DocStat/ParallelXmlHelper.cs)77
-rw-r--r--tools/DocStat/DocStat/comparefix.cs10
-rw-r--r--tools/DocStat/DocStat/comparereport.cs51
12 files changed, 1156 insertions, 67 deletions
diff --git a/tools/DocStat/DocStat.Tests/DocStat.Tests.csproj b/tools/DocStat/DocStat.Tests/DocStat.Tests.csproj
new file mode 100644
index 00000000..2a48d3cd
--- /dev/null
+++ b/tools/DocStat/DocStat.Tests/DocStat.Tests.csproj
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{29777CE7-2989-46BE-A073-E099DBB11D55}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <RootNamespace>DocStat.Tests</RootNamespace>
+ <AssemblyName>DocStat.Tests</AssemblyName>
+ <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug</OutputPath>
+ <DefineConstants>DEBUG;</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release</OutputPath>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="nunit.framework">
+ <HintPath>..\packages\NUnit.2.6.4\lib\nunit.framework.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Xml" />
+ <Reference Include="System.Xml.Linq" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="EcmaXmlHelperTests.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="packages.config" />
+ <None Include="TestData\currentxml\t1.xml">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </None>
+ <None Include="TestData\oldxml\t1.xml">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </None>
+ <None Include="TestData\currentxml\newType.xml">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </None>
+ </ItemGroup>
+ <ItemGroup>
+ <Folder Include="TestData\" />
+ <Folder Include="TestData\oldxml\" />
+ <Folder Include="TestData\currentxml\" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\DocStat\DocStat.csproj">
+ <Project>{EF899D5E-28F7-4CEE-A47A-80C4B4995B81}</Project>
+ <Name>DocStat</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+</Project> \ No newline at end of file
diff --git a/tools/DocStat/DocStat.Tests/EcmaXmlHelperTests.cs b/tools/DocStat/DocStat.Tests/EcmaXmlHelperTests.cs
new file mode 100644
index 00000000..5e27cd53
--- /dev/null
+++ b/tools/DocStat/DocStat.Tests/EcmaXmlHelperTests.cs
@@ -0,0 +1,49 @@
+using NUnit.Framework;
+using System;
+using System.IO;
+using System.Diagnostics;
+using System.Linq;
+using System.Xml.Linq;
+using System.Collections.Generic;
+
+using DocStat;
+
+namespace DocStat.Tests
+{
+ [TestFixture]
+ public class EcmaXmlHelperTests
+ {
+ [Test]
+ public void NewElementsYieldsAddedElements()
+ {
+ XDocument xmlNew = XDocument.Load("TestData/currentxml/t1.xml");
+ XDocument xmlOld = XDocument.Load("TestData/oldxml/t1.xml");
+
+ IEnumerable<XElement> newMembers = EcmaXmlHelper.NewMembers(xmlNew, xmlOld);
+
+ XElement e1 =
+ xmlNew.Element("Type").Element("Members").Elements()
+ .FirstOrDefault((XElement arg) => arg.Attribute("MemberName").Value == "WeakDelegate");
+
+ XElement e2 =
+ xmlNew.Element("Type").Element("Members").Elements()
+ .FirstOrDefault((XElement arg) => arg.Attribute("MemberName").Value == "WeakDataSource");
+
+ Assert.AreEqual(2, newMembers.Count());
+ Assert.True(newMembers.Contains(e1));
+ Assert.True(newMembers.Contains(e2));
+ }
+
+ [Test]
+ public void MembersReturnsMembers()
+ {
+ XDocument xmlOld = XDocument.Load("TestData/oldxml/t1.xml");
+ IEnumerable<XElement> members = EcmaXmlHelper.Members(xmlOld);
+ Assert.AreEqual(13, members.Count());
+
+ members = EcmaXmlHelper.Members(XDocument.Load("TestData/currentxml/t1.xml"));
+
+ Assert.AreEqual(15, members.Count());
+ }
+ }
+}
diff --git a/tools/DocStat/DocStat.Tests/TestData/currentxml/newType.xml b/tools/DocStat/DocStat.Tests/TestData/currentxml/newType.xml
new file mode 100644
index 00000000..0ea0c137
--- /dev/null
+++ b/tools/DocStat/DocStat.Tests/TestData/currentxml/newType.xml
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="UTF-8" ?>
diff --git a/tools/DocStat/DocStat.Tests/TestData/currentxml/t1.xml b/tools/DocStat/DocStat.Tests/TestData/currentxml/t1.xml
new file mode 100644
index 00000000..2032c75e
--- /dev/null
+++ b/tools/DocStat/DocStat.Tests/TestData/currentxml/t1.xml
@@ -0,0 +1,489 @@
+<Type Name="MPPlayableContentManager" FullName="MonoTouch.MediaPlayer.MPPlayableContentManager">
+ <TypeSignature Language="C#" Value="public class MPPlayableContentManager : MonoTouch.Foundation.NSObject" />
+ <TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit MPPlayableContentManager extends MonoTouch.Foundation.NSObject" />
+ <AssemblyInfo apistyle="classic">
+ <AssemblyName>monotouch</AssemblyName>
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ </AssemblyInfo>
+ <AssemblyInfo apistyle="unified">
+ <AssemblyName>Xamarin.iOS</AssemblyName>
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ </AssemblyInfo>
+ <Base>
+ <BaseTypeName>MonoTouch.Foundation.NSObject</BaseTypeName>
+ </Base>
+ <Interfaces />
+ <Attributes>
+ <Attribute>
+ <AttributeName>MonoTouch.Foundation.Register("MPPlayableContentManager", true)</AttributeName>
+ </Attribute>
+ <Attribute>
+ <AttributeName>MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 7, 1, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)</AttributeName>
+ </Attribute>
+ <Attribute>
+ <AttributeName>MonoTouch.ObjCRuntime.Unavailable(MonoTouch.ObjCRuntime.PlatformName.MacOSX, MonoTouch.ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
+ </Attribute>
+ <Attribute>
+ <AttributeName>MonoTouch.ObjCRuntime.Unavailable(MonoTouch.ObjCRuntime.PlatformName.TvOS, MonoTouch.ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
+ </Attribute>
+ </Attributes>
+ <Docs>
+ <summary>Controls interactions between the app and external media players.</summary>
+ <remarks>To be added.</remarks>
+ <related type="PlatformDocAPI" href="https://developer.apple.com/library/ios/documentation/MediaPlayer/Reference/MPPlayableContentManager_Ref/index.html">Apple documentation for <c>MPPlayableContentManager</c></related>
+ </Docs>
+ <Members>
+ <Member MemberName=".ctor" apistyle="classic">
+ <MemberSignature Language="C#" Value="public MPPlayableContentManager (MonoTouch.Foundation.NSCoder coder);" />
+ <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class MonoTouch.Foundation.NSCoder coder) cil managed" />
+ <MemberType>Constructor</MemberType>
+ <AssemblyInfo apistyle="classic">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ </AssemblyInfo>
+ <Attributes>
+ <Attribute>
+ <AttributeName>MonoTouch.Foundation.Export("initWithCoder:")</AttributeName>
+ </Attribute>
+ <Attribute>
+ <AttributeName>MonoTouch.ObjCRuntime.DesignatedInitializer</AttributeName>
+ </Attribute>
+ <Attribute>
+ <AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
+ </Attribute>
+ </Attributes>
+ <Parameters>
+ <Parameter Name="coder" Type="MonoTouch.Foundation.NSCoder" />
+ </Parameters>
+ <Docs>
+ <param name="coder">The unarchiver object.</param>
+ <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
+ <remarks>
+ <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="T:MonoTouch.Foundation.NSCoding" /> protocol.</para>
+ <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="T:MonoTouch.Foundation.NSCoder" /> and decorate it with the [Export("initWithCoder:"] attribute declaration.</para>
+ <para>The state of this object can also be serialized by using the companion method, EncodeTo.</para>
+ </remarks>
+ </Docs>
+ </Member>
+ <Member MemberName=".ctor">
+ <MemberSignature Language="C#" Value="public MPPlayableContentManager (MonoTouch.Foundation.NSObjectFlag t);" apistyle="classic" />
+ <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class MonoTouch.Foundation.NSObjectFlag t) cil managed" apistyle="classic" />
+ <MemberSignature Language="C#" Value="protected MPPlayableContentManager (MonoTouch.Foundation.NSObjectFlag t);" apistyle="unified" />
+ <MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor(class MonoTouch.Foundation.NSObjectFlag t) cil managed" apistyle="unified" />
+ <MemberType>Constructor</MemberType>
+ <AssemblyInfo apistyle="classic">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ </AssemblyInfo>
+ <AssemblyInfo apistyle="unified">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ <AssemblyName>Xamarin.iOS</AssemblyName>
+ </AssemblyInfo>
+ <Attributes>
+ <Attribute>
+ <AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
+ </Attribute>
+ </Attributes>
+ <Parameters>
+ <Parameter Name="t" Type="MonoTouch.Foundation.NSObjectFlag" />
+ </Parameters>
+ <Docs>
+ <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ <remarks>
+ <para>This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the NSObject. This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object. When developers invoke the constructor that takes the NSObjectFlag.Empty they take advantage of a direct path that goes all the way up to NSObject to merely allocate the object's memory and bind the Objective-C and C# objects together. The actual initialization of the object is up to the developer.</para>
+ <para>This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place. Once the allocation has taken place, the constructor has to initialize the object. With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.</para>
+ <para>It is the developer's responsibility to completely initialize the object if they chain up using the NSObjectFlag.Empty path.</para>
+ <para>In general, if the developer's constructor invokes the NSObjectFlag.Empty base implementation, then it should be calling an Objective-C init method. If this is not the case, developers should instead chain to the proper constructor in their class. </para>
+ <para>The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic NSObject allocation and runtime type registration. Typically the chaining would look like this:</para>
+ <example>
+ <code lang="C#"><![CDATA[
+//
+// The NSObjectFlag merely allocates the object and registers the
+// C# class with the Objective-C runtime if necessary, but no actual
+// initXxx method is invoked, that is done later in the constructor
+//
+// This is taken from MonoTouch's source code:
+//
+[Export ("initWithFrame:")]
+public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+{
+// Invoke the init method now.
+ var initWithFrame = new Selector ("initWithFrame:").Handle;
+ if (IsDirectBinding)
+ Handle = MonoTouch.ObjCRuntime.Messaging.IntPtr_objc_msgSend_RectangleF (this.Handle, initWithFrame, frame);
+ else
+ Handle = MonoTouch.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_RectangleF (this.SuperHandle, initWithFrame, frame);
+}
+]]></code>
+ </example>
+ </remarks>
+ </Docs>
+ </Member>
+ <Member MemberName=".ctor">
+ <MemberSignature Language="C#" Value="public MPPlayableContentManager (IntPtr handle);" apistyle="classic" />
+ <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(native int handle) cil managed" apistyle="classic" />
+ <MemberSignature Language="C#" Value="protected MPPlayableContentManager (IntPtr handle);" apistyle="unified" />
+ <MemberSignature Language="ILAsm" Value=".method familyorassemblyhidebysig specialname rtspecialname instance void .ctor(native int handle) cil managed" apistyle="unified" />
+ <MemberType>Constructor</MemberType>
+ <AssemblyInfo apistyle="classic">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ </AssemblyInfo>
+ <AssemblyInfo apistyle="unified">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ <AssemblyName>Xamarin.iOS</AssemblyName>
+ </AssemblyInfo>
+ <Attributes>
+ <Attribute>
+ <AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
+ </Attribute>
+ </Attributes>
+ <Parameters>
+ <Parameter Name="handle" Type="System.IntPtr" />
+ </Parameters>
+ <Docs>
+ <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ <summary>A constructor used when creating managed representations of unmanaged objects; Called by the runtime.</summary>
+ <remarks>
+ <para>This constructor is invoked by the runtime infrastructure (<see cref="M:MonoTouch.ObjCRuntime.GetNSObject (System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object. Developers should not invoke this method directly, instead they should call the GetNSObject method as it will prevent two instances of a managed object to point to the same native object.</para>
+ </remarks>
+ </Docs>
+ </Member>
+ <Member MemberName="BeginUpdates">
+ <MemberSignature Language="C#" Value="public virtual void BeginUpdates ();" />
+ <MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void BeginUpdates() cil managed" />
+ <MemberType>Method</MemberType>
+ <AssemblyInfo apistyle="classic">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ </AssemblyInfo>
+ <AssemblyInfo apistyle="unified">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ <AssemblyName>Xamarin.iOS</AssemblyName>
+ </AssemblyInfo>
+ <Attributes>
+ <Attribute>
+ <AttributeName>MonoTouch.Foundation.Export("beginUpdates")</AttributeName>
+ </Attribute>
+ </Attributes>
+ <ReturnValue>
+ <ReturnType>System.Void</ReturnType>
+ </ReturnValue>
+ <Parameters />
+ <Docs>
+ <summary>Begins simultanewously updating multiple Media Player content items.</summary>
+ <remarks>To be added.</remarks>
+ </Docs>
+ </Member>
+ <Member MemberName="ClassHandle">
+ <MemberSignature Language="C#" Value="public override IntPtr ClassHandle { get; }" />
+ <MemberSignature Language="ILAsm" Value=".property instance native int ClassHandle" />
+ <MemberType>Property</MemberType>
+ <AssemblyInfo apistyle="classic">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ </AssemblyInfo>
+ <AssemblyInfo apistyle="unified">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ <AssemblyName>Xamarin.iOS</AssemblyName>
+ </AssemblyInfo>
+ <ReturnValue>
+ <ReturnType>System.IntPtr</ReturnType>
+ </ReturnValue>
+ <Docs>
+ <summary>The handle for this class.</summary>
+ <value>The pointer to the Objective-C class.</value>
+ <remarks>Each MonoTouch class mirrors an unmanaged Objective-C class. This value contains the pointer to the Objective-C class, it is similar to calling objc_getClass with the object name.</remarks>
+ </Docs>
+ </Member>
+ <Member MemberName="Context">
+ <MemberSignature Language="C#" Value="public virtual MonoTouch.MediaPlayer.MPPlayableContentManagerContext Context { get; }" />
+ <MemberSignature Language="ILAsm" Value=".property instance class MonoTouch.MediaPlayer.MPPlayableContentManagerContext Context" />
+ <MemberType>Property</MemberType>
+ <AssemblyInfo apistyle="classic">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ </AssemblyInfo>
+ <AssemblyInfo apistyle="unified">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ <AssemblyName>Xamarin.iOS</AssemblyName>
+ </AssemblyInfo>
+ <Attributes>
+ <Attribute>
+ <AttributeName>MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 8, 4, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)</AttributeName>
+ </Attribute>
+ <Attribute>
+ <AttributeName>get: MonoTouch.Foundation.Export("context")</AttributeName>
+ </Attribute>
+ <Attribute>
+ <AttributeName>get: MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 8, 4, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)</AttributeName>
+ </Attribute>
+ </Attributes>
+ <ReturnValue>
+ <ReturnType>MonoTouch.MediaPlayer.MPPlayableContentManagerContext</ReturnType>
+ </ReturnValue>
+ <Docs>
+ <summary>To be added.</summary>
+ <value>To be added.</value>
+ <remarks>To be added.</remarks>
+ </Docs>
+ </Member>
+ <Member MemberName="DataSource">
+ <MemberSignature Language="C#" Value="public MonoTouch.MediaPlayer.MPPlayableContentDataSource DataSource { get; set; }" apistyle="classic" />
+ <MemberSignature Language="ILAsm" Value=".property instance class MonoTouch.MediaPlayer.MPPlayableContentDataSource DataSource" apistyle="classic" />
+ <MemberSignature Language="C#" Value="public MonoTouch.MediaPlayer.IMPPlayableContentDataSource DataSource { get; set; }" apistyle="unified" />
+ <MemberSignature Language="ILAsm" Value=".property instance class MonoTouch.MediaPlayer.IMPPlayableContentDataSource DataSource" apistyle="unified" />
+ <MemberType>Property</MemberType>
+ <AssemblyInfo apistyle="classic">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ </AssemblyInfo>
+ <AssemblyInfo apistyle="unified">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ <AssemblyName>Xamarin.iOS</AssemblyName>
+ </AssemblyInfo>
+ <ReturnValue>
+ <ReturnType apistyle="classic">MonoTouch.MediaPlayer.MPPlayableContentDataSource</ReturnType>
+ <ReturnType apistyle="unified">MonoTouch.MediaPlayer.IMPPlayableContentDataSource</ReturnType>
+ </ReturnValue>
+ <Docs>
+ <summary>Gets or sets the application data source.</summary>
+ <value>
+ <para>(More documentation for this node is coming)</para>
+ <para tool="nullallowed">This value can be <see langword="null" />.</para>
+ </value>
+ <remarks>To be added.</remarks>
+ </Docs>
+ </Member>
+ <Member MemberName="Delegate">
+ <MemberSignature Language="C#" Value="public MonoTouch.MediaPlayer.MPPlayableContentDelegate Delegate { get; set; }" apistyle="classic" />
+ <MemberSignature Language="ILAsm" Value=".property instance class MonoTouch.MediaPlayer.MPPlayableContentDelegate Delegate" apistyle="classic" />
+ <MemberSignature Language="C#" Value="public MonoTouch.MediaPlayer.IMPPlayableContentDelegate Delegate { get; set; }" apistyle="unified" />
+ <MemberSignature Language="ILAsm" Value=".property instance class MonoTouch.MediaPlayer.IMPPlayableContentDelegate Delegate" apistyle="unified" />
+ <MemberType>Property</MemberType>
+ <AssemblyInfo apistyle="classic">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ </AssemblyInfo>
+ <AssemblyInfo apistyle="unified">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ <AssemblyName>Xamarin.iOS</AssemblyName>
+ </AssemblyInfo>
+ <ReturnValue>
+ <ReturnType apistyle="classic">MonoTouch.MediaPlayer.MPPlayableContentDelegate</ReturnType>
+ <ReturnType apistyle="unified">MonoTouch.MediaPlayer.IMPPlayableContentDelegate</ReturnType>
+ </ReturnValue>
+ <Docs>
+ <summary>An instance of the MonoTouch.MediaPlayer.MPPlayableContentDelegate model class which acts as the class delegate.</summary>
+ <value>
+ <para>The instance of the MonoTouch.MediaPlayer.MPPlayableContentDelegate model class</para>
+ <para tool="nullallowed">This value can be <see langword="null" />.</para>
+ </value>
+ <remarks>
+ <para>The delegate instance assigned to this object will be used to handle events or provide data on demand to this class.</para>
+ <para>When setting the Delegate or WeakDelegate values events will be delivered to the specified instance instead of being delivered to the C#-style events</para>
+ <para>This is the strongly typed version of the object, developers should use the WeakDelegate property instead if they want to merely assign a class derived from NSObject that has been decorated with [Export] attributes.</para>
+ </remarks>
+ </Docs>
+ </Member>
+ <Member MemberName="Dispose">
+ <MemberSignature Language="C#" Value="protected override void Dispose (bool disposing);" />
+ <MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance void Dispose(bool disposing) cil managed" />
+ <MemberType>Method</MemberType>
+ <AssemblyInfo apistyle="classic">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ </AssemblyInfo>
+ <AssemblyInfo apistyle="unified">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ <AssemblyName>Xamarin.iOS</AssemblyName>
+ </AssemblyInfo>
+ <ReturnValue>
+ <ReturnType>System.Void</ReturnType>
+ </ReturnValue>
+ <Parameters>
+ <Parameter Name="disposing" Type="System.Boolean" />
+ </Parameters>
+ <Docs>
+ <param name="disposing">If set to <see langword="true" />, the method is invoked directly and will dispose manage and unmanaged resources; If set to <see langword="false" /> the method is being called by the garbage collector finalizer and should only release unmanaged resources.</param>
+ <summary>Releases the resources used by the MPPlayableContentManager object.</summary>
+ <remarks>
+ <para>This Dispose method releases the resources used by the MPPlayableContentManager class.</para>
+ <para>This method is called by both the Dispose() method and the object finalizer (Finalize). When invoked by the Dispose method, the parameter disposing <paramref name="disposing" /> is set to <see langword="true" /> and any managed object references that this object holds are also disposed or released; when invoked by the object finalizer, on the finalizer thread the value is set to <see langword="false" />. </para>
+ <para>Calling the Dispose method when the application is finished using the MPPlayableContentManager ensures that all external resources used by this managed object are released as soon as possible. Once developers have invoked the Dispose method, the object is no longer useful and developers should no longer make any calls to it.</para>
+ <para> For more information on how to override this method and on the Dispose/IDisposable pattern, read the ``Implementing a Dispose Method'' document at http://msdn.microsoft.com/en-us/library/fs2xkftw.aspx</para>
+ </remarks>
+ </Docs>
+ </Member>
+ <Member MemberName="EndUpdates">
+ <MemberSignature Language="C#" Value="public virtual void EndUpdates ();" />
+ <MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void EndUpdates() cil managed" />
+ <MemberType>Method</MemberType>
+ <AssemblyInfo apistyle="classic">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ </AssemblyInfo>
+ <AssemblyInfo apistyle="unified">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ <AssemblyName>Xamarin.iOS</AssemblyName>
+ </AssemblyInfo>
+ <Attributes>
+ <Attribute>
+ <AttributeName>MonoTouch.Foundation.Export("endUpdates")</AttributeName>
+ </Attribute>
+ </Attributes>
+ <ReturnValue>
+ <ReturnType>System.Void</ReturnType>
+ </ReturnValue>
+ <Parameters />
+ <Docs>
+ <summary>Ends updates.</summary>
+ <remarks>To be added.</remarks>
+ </Docs>
+ </Member>
+ <Member MemberName="NowPlayingIdentifiers">
+ <MemberSignature Language="C#" Value="public virtual string[] NowPlayingIdentifiers { get; set; }" />
+ <MemberSignature Language="ILAsm" Value=".property instance string[] NowPlayingIdentifiers" />
+ <MemberType>Property</MemberType>
+ <AssemblyInfo apistyle="classic">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ </AssemblyInfo>
+ <AssemblyInfo apistyle="unified">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ <AssemblyName>Xamarin.iOS</AssemblyName>
+ </AssemblyInfo>
+ <Attributes>
+ <Attribute>
+ <AttributeName>MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 10, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)</AttributeName>
+ </Attribute>
+ <Attribute>
+ <AttributeName>get: MonoTouch.Foundation.Export("nowPlayingIdentifiers")</AttributeName>
+ </Attribute>
+ <Attribute>
+ <AttributeName>get: MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 10, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)</AttributeName>
+ </Attribute>
+ <Attribute>
+ <AttributeName>set: MonoTouch.Foundation.Export("setNowPlayingIdentifiers:")</AttributeName>
+ </Attribute>
+ <Attribute>
+ <AttributeName>set: MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 10, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)</AttributeName>
+ </Attribute>
+ </Attributes>
+ <ReturnValue>
+ <ReturnType>System.String[]</ReturnType>
+ </ReturnValue>
+ <Docs>
+ <summary>To be added.</summary>
+ <value>To be added.</value>
+ <remarks>To be added.</remarks>
+ </Docs>
+ </Member>
+ <Member MemberName="ReloadData">
+ <MemberSignature Language="C#" Value="public virtual void ReloadData ();" />
+ <MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void ReloadData() cil managed" />
+ <MemberType>Method</MemberType>
+ <AssemblyInfo apistyle="classic">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ </AssemblyInfo>
+ <AssemblyInfo apistyle="unified">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ <AssemblyName>Xamarin.iOS</AssemblyName>
+ </AssemblyInfo>
+ <Attributes>
+ <Attribute>
+ <AttributeName>MonoTouch.Foundation.Export("reloadData")</AttributeName>
+ </Attribute>
+ </Attributes>
+ <ReturnValue>
+ <ReturnType>System.Void</ReturnType>
+ </ReturnValue>
+ <Parameters />
+ <Docs>
+ <summary>Reloads the source data.</summary>
+ <remarks>To be added.</remarks>
+ </Docs>
+ </Member>
+ <Member MemberName="Shared">
+ <MemberSignature Language="C#" Value="public static MonoTouch.MediaPlayer.MPPlayableContentManager Shared { get; }" />
+ <MemberSignature Language="ILAsm" Value=".property class MonoTouch.MediaPlayer.MPPlayableContentManager Shared" />
+ <MemberType>Property</MemberType>
+ <AssemblyInfo apistyle="classic">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ </AssemblyInfo>
+ <AssemblyInfo apistyle="unified">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ <AssemblyName>Xamarin.iOS</AssemblyName>
+ </AssemblyInfo>
+ <Attributes>
+ <Attribute>
+ <AttributeName>get: MonoTouch.Foundation.Export("sharedContentManager")</AttributeName>
+ </Attribute>
+ </Attributes>
+ <ReturnValue>
+ <ReturnType>MonoTouch.MediaPlayer.MPPlayableContentManager</ReturnType>
+ </ReturnValue>
+ <Docs>
+ <summary>Gets the shared data source instance.</summary>
+ <value>To be added.</value>
+ <remarks>To be added.</remarks>
+ </Docs>
+ </Member>
+ <Member MemberName="WeakDataSource">
+ <MemberSignature Language="C#" Value="public virtual MonoTouch.Foundation.NSObject WeakDataSource { get; set; }" />
+ <MemberSignature Language="ILAsm" Value=".property instance class MonoTouch.Foundation.NSObject WeakDataSource" />
+ <MemberType>Property</MemberType>
+ <AssemblyInfo apistyle="classic">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ </AssemblyInfo>
+ <AssemblyInfo apistyle="unified">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ <AssemblyName>Xamarin.iOS</AssemblyName>
+ </AssemblyInfo>
+ <Attributes>
+ <Attribute>
+ <AttributeName>get: MonoTouch.Foundation.Export("dataSource")</AttributeName>
+ </Attribute>
+ <Attribute>
+ <AttributeName>set: MonoTouch.Foundation.Export("setDataSource:")</AttributeName>
+ </Attribute>
+ </Attributes>
+ <ReturnValue>
+ <ReturnType>MonoTouch.Foundation.NSObject</ReturnType>
+ </ReturnValue>
+ <Docs>
+ <summary>Gets or sets a weak reference to the application data source.</summary>
+ <value>
+ <para>(More documentation for this node is coming)</para>
+ <para tool="nullallowed">This value can be <see langword="null" />.</para>
+ </value>
+ <remarks>To be added.</remarks>
+ </Docs>
+ </Member>
+ <Member MemberName="WeakDelegate">
+ <MemberSignature Language="C#" Value="public virtual MonoTouch.Foundation.NSObject WeakDelegate { get; set; }" />
+ <MemberSignature Language="ILAsm" Value=".property instance class MonoTouch.Foundation.NSObject WeakDelegate" />
+ <MemberType>Property</MemberType>
+ <AssemblyInfo apistyle="classic">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ </AssemblyInfo>
+ <AssemblyInfo apistyle="unified">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ <AssemblyName>Xamarin.iOS</AssemblyName>
+ </AssemblyInfo>
+ <Attributes>
+ <Attribute>
+ <AttributeName>get: MonoTouch.Foundation.Export("delegate")</AttributeName>
+ </Attribute>
+ <Attribute>
+ <AttributeName>set: MonoTouch.Foundation.Export("setDelegate:")</AttributeName>
+ </Attribute>
+ </Attributes>
+ <ReturnValue>
+ <ReturnType>MonoTouch.Foundation.NSObject</ReturnType>
+ </ReturnValue>
+ <Docs>
+ <summary>An object that can respond to the delegate protocol for this type</summary>
+ <value>
+ <para>The instance that will respond to events and data requests.</para>
+ <para tool="nullallowed">This value can be <see langword="null" />.</para>
+ </value>
+ <remarks>
+ <para>The delegate instance assigned to this object will be used to handle events or provide data on demand to this class.</para>
+ <para>When setting the Delegate or WeakDelegate values events will be delivered to the specified instance instead of being delivered to the C#-style events</para>
+ <para> Methods must be decorated with the [Export ("selectorName")] attribute to respond to each method from the protocol. Alternatively use the Delegate method which is strongly typed and does not require the [Export] attributes on methods.</para>
+ </remarks>
+ </Docs>
+ </Member>
+ </Members>
+</Type>
diff --git a/tools/DocStat/DocStat.Tests/TestData/oldxml/t1.xml b/tools/DocStat/DocStat.Tests/TestData/oldxml/t1.xml
new file mode 100644
index 00000000..e8dd2cc7
--- /dev/null
+++ b/tools/DocStat/DocStat.Tests/TestData/oldxml/t1.xml
@@ -0,0 +1,423 @@
+<Type Name="MPPlayableContentManager" FullName="MonoTouch.MediaPlayer.MPPlayableContentManager">
+ <TypeSignature Language="C#" Value="public class MPPlayableContentManager : MonoTouch.Foundation.NSObject" />
+ <TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit MPPlayableContentManager extends MonoTouch.Foundation.NSObject" />
+ <AssemblyInfo apistyle="classic">
+ <AssemblyName>monotouch</AssemblyName>
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ </AssemblyInfo>
+ <AssemblyInfo apistyle="unified">
+ <AssemblyName>Xamarin.iOS</AssemblyName>
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ </AssemblyInfo>
+ <Base>
+ <BaseTypeName>MonoTouch.Foundation.NSObject</BaseTypeName>
+ </Base>
+ <Interfaces />
+ <Attributes>
+ <Attribute>
+ <AttributeName>MonoTouch.Foundation.Register("MPPlayableContentManager", true)</AttributeName>
+ </Attribute>
+ <Attribute>
+ <AttributeName>MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 7, 1, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)</AttributeName>
+ </Attribute>
+ <Attribute>
+ <AttributeName>MonoTouch.ObjCRuntime.Unavailable(MonoTouch.ObjCRuntime.PlatformName.MacOSX, MonoTouch.ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
+ </Attribute>
+ <Attribute>
+ <AttributeName>MonoTouch.ObjCRuntime.Unavailable(MonoTouch.ObjCRuntime.PlatformName.TvOS, MonoTouch.ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
+ </Attribute>
+ </Attributes>
+ <Docs>
+ <summary>Controls interactions between the app and external media players.</summary>
+ <remarks>To be added.</remarks>
+ <related type="PlatformDocAPI" href="https://developer.apple.com/library/ios/documentation/MediaPlayer/Reference/MPPlayableContentManager_Ref/index.html">Apple documentation for <c>MPPlayableContentManager</c></related>
+ </Docs>
+ <Members>
+ <Member MemberName=".ctor" apistyle="classic">
+ <MemberSignature Language="C#" Value="public MPPlayableContentManager (MonoTouch.Foundation.NSCoder coder);" />
+ <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class MonoTouch.Foundation.NSCoder coder) cil managed" />
+ <MemberType>Constructor</MemberType>
+ <AssemblyInfo apistyle="classic">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ </AssemblyInfo>
+ <Attributes>
+ <Attribute>
+ <AttributeName>MonoTouch.Foundation.Export("initWithCoder:")</AttributeName>
+ </Attribute>
+ <Attribute>
+ <AttributeName>MonoTouch.ObjCRuntime.DesignatedInitializer</AttributeName>
+ </Attribute>
+ <Attribute>
+ <AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
+ </Attribute>
+ </Attributes>
+ <Parameters>
+ <Parameter Name="coder" Type="MonoTouch.Foundation.NSCoder" />
+ </Parameters>
+ <Docs>
+ <param name="coder">The unarchiver object.</param>
+ <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
+ <remarks>
+ <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="T:MonoTouch.Foundation.NSCoding" /> protocol.</para>
+ <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="T:MonoTouch.Foundation.NSCoder" /> and decorate it with the [Export("initWithCoder:"] attribute declaration.</para>
+ <para>The state of this object can also be serialized by using the companion method, EncodeTo.</para>
+ </remarks>
+ </Docs>
+ </Member>
+ <Member MemberName=".ctor">
+ <MemberSignature Language="C#" Value="public MPPlayableContentManager (MonoTouch.Foundation.NSObjectFlag t);" apistyle="classic" />
+ <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class MonoTouch.Foundation.NSObjectFlag t) cil managed" apistyle="classic" />
+ <MemberSignature Language="C#" Value="protected MPPlayableContentManager (MonoTouch.Foundation.NSObjectFlag t);" apistyle="unified" />
+ <MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor(class MonoTouch.Foundation.NSObjectFlag t) cil managed" apistyle="unified" />
+ <MemberType>Constructor</MemberType>
+ <AssemblyInfo apistyle="classic">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ </AssemblyInfo>
+ <AssemblyInfo apistyle="unified">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ <AssemblyName>Xamarin.iOS</AssemblyName>
+ </AssemblyInfo>
+ <Attributes>
+ <Attribute>
+ <AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
+ </Attribute>
+ </Attributes>
+ <Parameters>
+ <Parameter Name="t" Type="MonoTouch.Foundation.NSObjectFlag" />
+ </Parameters>
+ <Docs>
+ <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ <remarks>
+ <para>This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the NSObject. This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object. When developers invoke the constructor that takes the NSObjectFlag.Empty they take advantage of a direct path that goes all the way up to NSObject to merely allocate the object's memory and bind the Objective-C and C# objects together. The actual initialization of the object is up to the developer.</para>
+ <para>This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place. Once the allocation has taken place, the constructor has to initialize the object. With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.</para>
+ <para>It is the developer's responsibility to completely initialize the object if they chain up using the NSObjectFlag.Empty path.</para>
+ <para>In general, if the developer's constructor invokes the NSObjectFlag.Empty base implementation, then it should be calling an Objective-C init method. If this is not the case, developers should instead chain to the proper constructor in their class. </para>
+ <para>The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic NSObject allocation and runtime type registration. Typically the chaining would look like this:</para>
+ <example>
+ <code lang="C#"><![CDATA[
+//
+// The NSObjectFlag merely allocates the object and registers the
+// C# class with the Objective-C runtime if necessary, but no actual
+// initXxx method is invoked, that is done later in the constructor
+//
+// This is taken from MonoTouch's source code:
+//
+[Export ("initWithFrame:")]
+public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+{
+// Invoke the init method now.
+ var initWithFrame = new Selector ("initWithFrame:").Handle;
+ if (IsDirectBinding)
+ Handle = MonoTouch.ObjCRuntime.Messaging.IntPtr_objc_msgSend_RectangleF (this.Handle, initWithFrame, frame);
+ else
+ Handle = MonoTouch.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_RectangleF (this.SuperHandle, initWithFrame, frame);
+}
+]]></code>
+ </example>
+ </remarks>
+ </Docs>
+ </Member>
+ <Member MemberName=".ctor">
+ <MemberSignature Language="C#" Value="public MPPlayableContentManager (IntPtr handle);" apistyle="classic" />
+ <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(native int handle) cil managed" apistyle="classic" />
+ <MemberSignature Language="C#" Value="protected MPPlayableContentManager (IntPtr handle);" apistyle="unified" />
+ <MemberSignature Language="ILAsm" Value=".method familyorassemblyhidebysig specialname rtspecialname instance void .ctor(native int handle) cil managed" apistyle="unified" />
+ <MemberType>Constructor</MemberType>
+ <AssemblyInfo apistyle="classic">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ </AssemblyInfo>
+ <AssemblyInfo apistyle="unified">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ <AssemblyName>Xamarin.iOS</AssemblyName>
+ </AssemblyInfo>
+ <Attributes>
+ <Attribute>
+ <AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
+ </Attribute>
+ </Attributes>
+ <Parameters>
+ <Parameter Name="handle" Type="System.IntPtr" />
+ </Parameters>
+ <Docs>
+ <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ <summary>A constructor used when creating managed representations of unmanaged objects; Called by the runtime.</summary>
+ <remarks>
+ <para>This constructor is invoked by the runtime infrastructure (<see cref="M:MonoTouch.ObjCRuntime.GetNSObject (System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object. Developers should not invoke this method directly, instead they should call the GetNSObject method as it will prevent two instances of a managed object to point to the same native object.</para>
+ </remarks>
+ </Docs>
+ </Member>
+ <Member MemberName="BeginUpdates">
+ <MemberSignature Language="C#" Value="public virtual void BeginUpdates ();" />
+ <MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void BeginUpdates() cil managed" />
+ <MemberType>Method</MemberType>
+ <AssemblyInfo apistyle="classic">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ </AssemblyInfo>
+ <AssemblyInfo apistyle="unified">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ <AssemblyName>Xamarin.iOS</AssemblyName>
+ </AssemblyInfo>
+ <Attributes>
+ <Attribute>
+ <AttributeName>MonoTouch.Foundation.Export("beginUpdates")</AttributeName>
+ </Attribute>
+ </Attributes>
+ <ReturnValue>
+ <ReturnType>System.Void</ReturnType>
+ </ReturnValue>
+ <Parameters />
+ <Docs>
+ <summary>Begins simultanewously updating multiple Media Player content items.</summary>
+ <remarks>To be added.</remarks>
+ </Docs>
+ </Member>
+ <Member MemberName="ClassHandle">
+ <MemberSignature Language="C#" Value="public override IntPtr ClassHandle { get; }" />
+ <MemberSignature Language="ILAsm" Value=".property instance native int ClassHandle" />
+ <MemberType>Property</MemberType>
+ <AssemblyInfo apistyle="classic">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ </AssemblyInfo>
+ <AssemblyInfo apistyle="unified">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ <AssemblyName>Xamarin.iOS</AssemblyName>
+ </AssemblyInfo>
+ <ReturnValue>
+ <ReturnType>System.IntPtr</ReturnType>
+ </ReturnValue>
+ <Docs>
+ <summary>The handle for this class.</summary>
+ <value>The pointer to the Objective-C class.</value>
+ <remarks>Each MonoTouch class mirrors an unmanaged Objective-C class. This value contains the pointer to the Objective-C class, it is similar to calling objc_getClass with the object name.</remarks>
+ </Docs>
+ </Member>
+ <Member MemberName="Context">
+ <MemberSignature Language="C#" Value="public virtual MonoTouch.MediaPlayer.MPPlayableContentManagerContext Context { get; }" />
+ <MemberSignature Language="ILAsm" Value=".property instance class MonoTouch.MediaPlayer.MPPlayableContentManagerContext Context" />
+ <MemberType>Property</MemberType>
+ <AssemblyInfo apistyle="classic">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ </AssemblyInfo>
+ <AssemblyInfo apistyle="unified">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ <AssemblyName>Xamarin.iOS</AssemblyName>
+ </AssemblyInfo>
+ <Attributes>
+ <Attribute>
+ <AttributeName>MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 8, 4, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)</AttributeName>
+ </Attribute>
+ <Attribute>
+ <AttributeName>get: MonoTouch.Foundation.Export("context")</AttributeName>
+ </Attribute>
+ <Attribute>
+ <AttributeName>get: MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 8, 4, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)</AttributeName>
+ </Attribute>
+ </Attributes>
+ <ReturnValue>
+ <ReturnType>MonoTouch.MediaPlayer.MPPlayableContentManagerContext</ReturnType>
+ </ReturnValue>
+ <Docs>
+ <summary>To be added.</summary>
+ <value>To be added.</value>
+ <remarks>To be added.</remarks>
+ </Docs>
+ </Member>
+ <Member MemberName="DataSource">
+ <MemberSignature Language="C#" Value="public MonoTouch.MediaPlayer.MPPlayableContentDataSource DataSource { get; set; }" apistyle="classic" />
+ <MemberSignature Language="ILAsm" Value=".property instance class MonoTouch.MediaPlayer.MPPlayableContentDataSource DataSource" apistyle="classic" />
+ <MemberSignature Language="C#" Value="public MonoTouch.MediaPlayer.IMPPlayableContentDataSource DataSource { get; set; }" apistyle="unified" />
+ <MemberSignature Language="ILAsm" Value=".property instance class MonoTouch.MediaPlayer.IMPPlayableContentDataSource DataSource" apistyle="unified" />
+ <MemberType>Property</MemberType>
+ <AssemblyInfo apistyle="classic">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ </AssemblyInfo>
+ <AssemblyInfo apistyle="unified">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ <AssemblyName>Xamarin.iOS</AssemblyName>
+ </AssemblyInfo>
+ <ReturnValue>
+ <ReturnType apistyle="classic">MonoTouch.MediaPlayer.MPPlayableContentDataSource</ReturnType>
+ <ReturnType apistyle="unified">MonoTouch.MediaPlayer.IMPPlayableContentDataSource</ReturnType>
+ </ReturnValue>
+ <Docs>
+ <summary>Gets or sets the application data source.</summary>
+ <value>
+ <para>(More documentation for this node is coming)</para>
+ <para tool="nullallowed">This value can be <see langword="null" />.</para>
+ </value>
+ <remarks>To be added.</remarks>
+ </Docs>
+ </Member>
+ <Member MemberName="Delegate">
+ <MemberSignature Language="C#" Value="public MonoTouch.MediaPlayer.MPPlayableContentDelegate Delegate { get; set; }" apistyle="classic" />
+ <MemberSignature Language="ILAsm" Value=".property instance class MonoTouch.MediaPlayer.MPPlayableContentDelegate Delegate" apistyle="classic" />
+ <MemberSignature Language="C#" Value="public MonoTouch.MediaPlayer.IMPPlayableContentDelegate Delegate { get; set; }" apistyle="unified" />
+ <MemberSignature Language="ILAsm" Value=".property instance class MonoTouch.MediaPlayer.IMPPlayableContentDelegate Delegate" apistyle="unified" />
+ <MemberType>Property</MemberType>
+ <AssemblyInfo apistyle="classic">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ </AssemblyInfo>
+ <AssemblyInfo apistyle="unified">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ <AssemblyName>Xamarin.iOS</AssemblyName>
+ </AssemblyInfo>
+ <ReturnValue>
+ <ReturnType apistyle="classic">MonoTouch.MediaPlayer.MPPlayableContentDelegate</ReturnType>
+ <ReturnType apistyle="unified">MonoTouch.MediaPlayer.IMPPlayableContentDelegate</ReturnType>
+ </ReturnValue>
+ <Docs>
+ <summary>An instance of the MonoTouch.MediaPlayer.MPPlayableContentDelegate model class which acts as the class delegate.</summary>
+ <value>
+ <para>The instance of the MonoTouch.MediaPlayer.MPPlayableContentDelegate model class</para>
+ <para tool="nullallowed">This value can be <see langword="null" />.</para>
+ </value>
+ <remarks>
+ <para>The delegate instance assigned to this object will be used to handle events or provide data on demand to this class.</para>
+ <para>When setting the Delegate or WeakDelegate values events will be delivered to the specified instance instead of being delivered to the C#-style events</para>
+ <para>This is the strongly typed version of the object, developers should use the WeakDelegate property instead if they want to merely assign a class derived from NSObject that has been decorated with [Export] attributes.</para>
+ </remarks>
+ </Docs>
+ </Member>
+ <Member MemberName="Dispose">
+ <MemberSignature Language="C#" Value="protected override void Dispose (bool disposing);" />
+ <MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance void Dispose(bool disposing) cil managed" />
+ <MemberType>Method</MemberType>
+ <AssemblyInfo apistyle="classic">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ </AssemblyInfo>
+ <AssemblyInfo apistyle="unified">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ <AssemblyName>Xamarin.iOS</AssemblyName>
+ </AssemblyInfo>
+ <ReturnValue>
+ <ReturnType>System.Void</ReturnType>
+ </ReturnValue>
+ <Parameters>
+ <Parameter Name="disposing" Type="System.Boolean" />
+ </Parameters>
+ <Docs>
+ <param name="disposing">If set to <see langword="true" />, the method is invoked directly and will dispose manage and unmanaged resources; If set to <see langword="false" /> the method is being called by the garbage collector finalizer and should only release unmanaged resources.</param>
+ <summary>Releases the resources used by the MPPlayableContentManager object.</summary>
+ <remarks>
+ <para>This Dispose method releases the resources used by the MPPlayableContentManager class.</para>
+ <para>This method is called by both the Dispose() method and the object finalizer (Finalize). When invoked by the Dispose method, the parameter disposing <paramref name="disposing" /> is set to <see langword="true" /> and any managed object references that this object holds are also disposed or released; when invoked by the object finalizer, on the finalizer thread the value is set to <see langword="false" />. </para>
+ <para>Calling the Dispose method when the application is finished using the MPPlayableContentManager ensures that all external resources used by this managed object are released as soon as possible. Once developers have invoked the Dispose method, the object is no longer useful and developers should no longer make any calls to it.</para>
+ <para> For more information on how to override this method and on the Dispose/IDisposable pattern, read the ``Implementing a Dispose Method'' document at http://msdn.microsoft.com/en-us/library/fs2xkftw.aspx</para>
+ </remarks>
+ </Docs>
+ </Member>
+ <Member MemberName="EndUpdates">
+ <MemberSignature Language="C#" Value="public virtual void EndUpdates ();" />
+ <MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void EndUpdates() cil managed" />
+ <MemberType>Method</MemberType>
+ <AssemblyInfo apistyle="classic">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ </AssemblyInfo>
+ <AssemblyInfo apistyle="unified">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ <AssemblyName>Xamarin.iOS</AssemblyName>
+ </AssemblyInfo>
+ <Attributes>
+ <Attribute>
+ <AttributeName>MonoTouch.Foundation.Export("endUpdates")</AttributeName>
+ </Attribute>
+ </Attributes>
+ <ReturnValue>
+ <ReturnType>System.Void</ReturnType>
+ </ReturnValue>
+ <Parameters />
+ <Docs>
+ <summary>Ends updates.</summary>
+ <remarks>To be added.</remarks>
+ </Docs>
+ </Member>
+ <Member MemberName="NowPlayingIdentifiers">
+ <MemberSignature Language="C#" Value="public virtual string[] NowPlayingIdentifiers { get; set; }" />
+ <MemberSignature Language="ILAsm" Value=".property instance string[] NowPlayingIdentifiers" />
+ <MemberType>Property</MemberType>
+ <AssemblyInfo apistyle="classic">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ </AssemblyInfo>
+ <AssemblyInfo apistyle="unified">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ <AssemblyName>Xamarin.iOS</AssemblyName>
+ </AssemblyInfo>
+ <Attributes>
+ <Attribute>
+ <AttributeName>MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 10, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)</AttributeName>
+ </Attribute>
+ <Attribute>
+ <AttributeName>get: MonoTouch.Foundation.Export("nowPlayingIdentifiers")</AttributeName>
+ </Attribute>
+ <Attribute>
+ <AttributeName>get: MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 10, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)</AttributeName>
+ </Attribute>
+ <Attribute>
+ <AttributeName>set: MonoTouch.Foundation.Export("setNowPlayingIdentifiers:")</AttributeName>
+ </Attribute>
+ <Attribute>
+ <AttributeName>set: MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 10, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)</AttributeName>
+ </Attribute>
+ </Attributes>
+ <ReturnValue>
+ <ReturnType>System.String[]</ReturnType>
+ </ReturnValue>
+ <Docs>
+ <summary>To be added.</summary>
+ <value>To be added.</value>
+ <remarks>To be added.</remarks>
+ </Docs>
+ </Member>
+ <Member MemberName="ReloadData">
+ <MemberSignature Language="C#" Value="public virtual void ReloadData ();" />
+ <MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void ReloadData() cil managed" />
+ <MemberType>Method</MemberType>
+ <AssemblyInfo apistyle="classic">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ </AssemblyInfo>
+ <AssemblyInfo apistyle="unified">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ <AssemblyName>Xamarin.iOS</AssemblyName>
+ </AssemblyInfo>
+ <Attributes>
+ <Attribute>
+ <AttributeName>MonoTouch.Foundation.Export("reloadData")</AttributeName>
+ </Attribute>
+ </Attributes>
+ <ReturnValue>
+ <ReturnType>System.Void</ReturnType>
+ </ReturnValue>
+ <Parameters />
+ <Docs>
+ <summary>Reloads the source data.</summary>
+ <remarks>To be added.</remarks>
+ </Docs>
+ </Member>
+ <Member MemberName="Shared">
+ <MemberSignature Language="C#" Value="public static MonoTouch.MediaPlayer.MPPlayableContentManager Shared { get; }" />
+ <MemberSignature Language="ILAsm" Value=".property class MonoTouch.MediaPlayer.MPPlayableContentManager Shared" />
+ <MemberType>Property</MemberType>
+ <AssemblyInfo apistyle="classic">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ </AssemblyInfo>
+ <AssemblyInfo apistyle="unified">
+ <AssemblyVersion>0.0.0.0</AssemblyVersion>
+ <AssemblyName>Xamarin.iOS</AssemblyName>
+ </AssemblyInfo>
+ <Attributes>
+ <Attribute>
+ <AttributeName>get: MonoTouch.Foundation.Export("sharedContentManager")</AttributeName>
+ </Attribute>
+ </Attributes>
+ <ReturnValue>
+ <ReturnType>MonoTouch.MediaPlayer.MPPlayableContentManager</ReturnType>
+ </ReturnValue>
+ <Docs>
+ <summary>To be added.</summary>
+ <value>To be added.</value>
+ <remarks>To be added.</remarks>
+ </Docs>
+ </Member>
+ </Members>
+</Type>
diff --git a/tools/DocStat/DocStat.Tests/packages.config b/tools/DocStat/DocStat.Tests/packages.config
new file mode 100644
index 00000000..01c187cc
--- /dev/null
+++ b/tools/DocStat/DocStat.Tests/packages.config
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="NUnit" version="2.6.4" targetFramework="net461" />
+</packages> \ No newline at end of file
diff --git a/tools/DocStat/DocStat.sln b/tools/DocStat/DocStat.sln
index 3b2f6025..dd7a17db 100644
--- a/tools/DocStat/DocStat.sln
+++ b/tools/DocStat/DocStat.sln
@@ -3,6 +3,8 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DocStat", "DocStat\DocStat.csproj", "{EF899D5E-28F7-4CEE-A47A-80C4B4995B81}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DocStat.Tests", "DocStat.Tests\DocStat.Tests.csproj", "{29777CE7-2989-46BE-A073-E099DBB11D55}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x86 = Debug|x86
@@ -13,5 +15,9 @@ Global
{EF899D5E-28F7-4CEE-A47A-80C4B4995B81}.Debug|x86.Build.0 = Debug|x86
{EF899D5E-28F7-4CEE-A47A-80C4B4995B81}.Release|x86.ActiveCfg = Release|x86
{EF899D5E-28F7-4CEE-A47A-80C4B4995B81}.Release|x86.Build.0 = Release|x86
+ {29777CE7-2989-46BE-A073-E099DBB11D55}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {29777CE7-2989-46BE-A073-E099DBB11D55}.Debug|x86.Build.0 = Debug|Any CPU
+ {29777CE7-2989-46BE-A073-E099DBB11D55}.Release|x86.ActiveCfg = Release|Any CPU
+ {29777CE7-2989-46BE-A073-E099DBB11D55}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
diff --git a/tools/DocStat/DocStat/CommandUtils.cs b/tools/DocStat/DocStat/CommandUtils.cs
index 82bf3846..8d4686fe 100644
--- a/tools/DocStat/DocStat/CommandUtils.cs
+++ b/tools/DocStat/DocStat/CommandUtils.cs
@@ -200,54 +200,6 @@ namespace DocStat
);
}
- public static IEnumerable<XElement> ElementsOfInterest(XDocument ecmaXmlDoc)
- {
- // (1) Yield type-level summary and remarks:
- yield return ecmaXmlDoc.Element("Type").Element("Docs").Element("summary");
-
- yield return ecmaXmlDoc.Element("Type").Element("Docs").Element("remarks");
-
-
- var members = ecmaXmlDoc.Element("Type").Element("Members");
-
- if (null != members)
- {
- foreach (XElement m in members.Elements())
- {
- // (2) Yield summary, remarks, return values, parameters, and typeparams
- XElement docsElement = m.Element("Docs");
-
- yield return docsElement.Element("summary");
-
-
- XElement remarks = docsElement.Element("remarks");
- if (null != remarks)
- yield return remarks;
-
- XElement returns = docsElement.Element("returns");
- if (null != returns)
- yield return returns;
-
- if (docsElement.Elements("param").Any())
- {
- IEnumerable<XElement> _params = docsElement.Elements("param");
- foreach (XElement p in _params)
- {
- yield return p;
- }
- }
-
- if (docsElement.Elements("typeparam").Any())
- {
- IEnumerable<XElement> typeparams = docsElement.Elements("typeparam");
- foreach (XElement p in typeparams)
- {
- yield return p;
- }
- }
- }
- }
- }
}
}
diff --git a/tools/DocStat/DocStat/DocStat.csproj b/tools/DocStat/DocStat/DocStat.csproj
index d06c6276..6ba10b6a 100644
--- a/tools/DocStat/DocStat/DocStat.csproj
+++ b/tools/DocStat/DocStat/DocStat.csproj
@@ -32,11 +32,12 @@
<Compile Include="comparefix.cs" />
<Compile Include="internalize.cs" />
<Compile Include="obsolete.cs" />
- <Compile Include="ParallelXmlHelper.cs" />
+ <Compile Include="EcmaXmlHelper.cs" />
<Compile Include="remaining.cs" />
<Compile Include="..\..\..\mdoc\Options.cs">
<Link>Options.cs</Link>
</Compile>
+ <Compile Include="comparereport.cs" />
</ItemGroup>
<ItemGroup>
<Reference Include="System.Xml.Linq" />
diff --git a/tools/DocStat/DocStat/ParallelXmlHelper.cs b/tools/DocStat/DocStat/EcmaXmlHelper.cs
index bac32386..8176b0ad 100644
--- a/tools/DocStat/DocStat/ParallelXmlHelper.cs
+++ b/tools/DocStat/DocStat/EcmaXmlHelper.cs
@@ -6,7 +6,7 @@ using System.Xml.Linq;
namespace DocStat
{
- public static class ParallelXmlHelper
+ public static class EcmaXmlHelper
{
public static void Fix(XElement toFix, XElement forReference)
{
@@ -90,7 +90,7 @@ namespace DocStat
foreach (var _selector in ((IEnumerable<Func<XElement, XElement>>)toRun).Reverse())
{
- _current = _selector.Invoke(_current);
+ _current = _selector(_current);
if (_current == null)
return null;
@@ -133,5 +133,78 @@ namespace DocStat
return XDocument.Load(parallelFilePath);
}
+
+ public static IEnumerable<XElement> ElementsOfInterest(XDocument ecmaXmlDoc)
+ {
+ // (1) Yield type-level summary and remarks:
+ yield return ecmaXmlDoc.Element("Type").Element("Docs").Element("summary");
+
+ yield return ecmaXmlDoc.Element("Type").Element("Docs").Element("remarks");
+
+
+ var members = ecmaXmlDoc.Element("Type").Element("Members");
+
+ if (null != members)
+ {
+
+ foreach (XElement m in members.Elements())
+ {
+ // (2) Yield summary, remarks, return values, parameters, and typeparams
+ XElement docsElement = m.Element("Docs");
+
+ yield return docsElement.Element("summary");
+
+
+ XElement remarks = docsElement.Element("remarks");
+ if (null != remarks)
+ yield return remarks;
+
+ XElement returns = docsElement.Element("returns");
+ if (null != returns)
+ yield return returns;
+
+ if (docsElement.Elements("param").Any())
+ {
+ IEnumerable<XElement> _params = docsElement.Elements("param");
+ foreach (XElement p in _params)
+ {
+ yield return p;
+ }
+ }
+
+ if (docsElement.Elements("typeparam").Any())
+ {
+ IEnumerable<XElement> typeparams = docsElement.Elements("typeparam");
+ foreach (XElement p in typeparams)
+ {
+ yield return p;
+ }
+ }
+ }
+ }
+ }
+
+ public static IEnumerable<XElement> Members(XDocument ecmaXmlDoc)
+ {
+ foreach (var m in ecmaXmlDoc.Element("Type").Element("Members").Elements())
+ yield return m;
+ }
+
+ public static IEnumerable<XElement> NewMembers(XDocument newXml, XDocument oldXml)
+ {
+ if (null == oldXml)
+ {
+ foreach (var e in Members(newXml))
+ yield return e;
+ }
+ else
+ {
+ foreach (var e in Members(newXml))
+ {
+ if (null == GetSelectorFor(e)(oldXml))
+ yield return e;
+ }
+ }
+ }
}
}
diff --git a/tools/DocStat/DocStat/comparefix.cs b/tools/DocStat/DocStat/comparefix.cs
index 4fc2aa21..fe116ddb 100644
--- a/tools/DocStat/DocStat/comparefix.cs
+++ b/tools/DocStat/DocStat/comparefix.cs
@@ -56,15 +56,15 @@ namespace DocStat
filesToFix =
filesToFix.Where((f) =>
- filesToUseAsReference.Contains(ParallelXmlHelper.GetParallelFilePathFor(f,
+ filesToUseAsReference.Contains(EcmaXmlHelper.GetParallelFilePathFor(f,
filesToUseAsRefDir,
filesToFixDir)));
foreach (var f in filesToFix)
{
- XDocument currentRefXDoc = ParallelXmlHelper.GetParallelXDocFor(
- ParallelXmlHelper.GetParallelFilePathFor(f, filesToUseAsRefDir, filesToFixDir),
+ XDocument currentRefXDoc = EcmaXmlHelper.GetParallelXDocFor(
+ EcmaXmlHelper.GetParallelFilePathFor(f, filesToUseAsRefDir, filesToFixDir),
filesToUseAsReference
);
@@ -72,7 +72,7 @@ namespace DocStat
continue;
Action<XElement> fix =
- (XElement e) => ParallelXmlHelper.Fix(e, ParallelXmlHelper.GetSelectorFor(e).Invoke(currentRefXDoc));
+ (XElement e) => EcmaXmlHelper.Fix(e, EcmaXmlHelper.GetSelectorFor(e)(currentRefXDoc));
bool changed = false;
XDocument currentXDocToFix = XDocument.Load(f);
@@ -82,7 +82,7 @@ namespace DocStat
new EventHandler<XObjectChangeEventArgs>((sender, e) => { currentXDocToFix.Changed -= SetTrueIfChanged; changed = true; });
currentXDocToFix.Changed += SetTrueIfChanged;
- foreach (XElement e in CommandUtils.ElementsOfInterest(currentXDocToFix))
+ foreach (XElement e in EcmaXmlHelper.ElementsOfInterest(currentXDocToFix))
fix(e);
if (changed)
diff --git a/tools/DocStat/DocStat/comparereport.cs b/tools/DocStat/DocStat/comparereport.cs
index 86c12c3b..8cbcafc2 100644
--- a/tools/DocStat/DocStat/comparereport.cs
+++ b/tools/DocStat/DocStat/comparereport.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
@@ -55,24 +55,53 @@ namespace DocStat
updated =
updated.Where((f) =>
- filesToUseAsReference.Contains(ParallelXmlHelper.GetParallelFilePathFor(f,
+ filesToUseAsReference.Contains(EcmaXmlHelper.GetParallelFilePathFor(f,
oldFilesDir,
updatedDir)));
- foreach (string updatedXMLFile in updated)
- {
- // For each member in the updated files, report if the old one isn't present
+
- string oldXMLFile = ParallelXmlHelper.GetParallelFilePathFor(updatedXMLFile, oldFilesDir, updatedDir);
+ StreamWriter reportStream = new StreamWriter(reportFile);
+ reportStream.WriteLine(@"""File Name"",""Type"",""Member""");
- bool completelyNew = !File.Exists(oldXMLFile);
+ string threeColumnFormatString = @"""{0}"",""{1}"",""{2}""";
+ string twoColumnFormatString = @"""{0}"",""{1}""";
- XDocument updatedXDoc = XDocument.Load(updatedXMLFile);
- XDocument oldXDoc = XDocument.Load(oldXMLFile);
+ Action<XElement> Write = null;
+ Action<XElement> WriteSubsequent = (XElement e) =>
+ {
+ reportStream.WriteLine(threeColumnFormatString, "", "", e.Attribute("name").Value);
+ };
- }
+
+ foreach (string updatedXMLFile in updated)
+ {
+ XDocument updatedXDoc = XDocument.Load(updatedXMLFile);
+
+ Write = (XElement e) =>
+ {
+ reportStream.WriteLine(twoColumnFormatString,
+ updatedXMLFile,
+ updatedXDoc.Element("Type").Attribute("FullName").Value);
+ WriteSubsequent(e);
+ Write = WriteSubsequent;
+ };
+
+ string oldXMLFile = EcmaXmlHelper.GetParallelFilePathFor(updatedXMLFile, oldFilesDir, updatedDir);
+ XDocument oldXDoc = File.Exists(oldXMLFile) ? XDocument.Load(oldXMLFile) : null;
+
+ foreach (XElement e in EcmaXmlHelper.NewMembers(updatedXDoc, oldXDoc))
+ {
+ Write(e);
+ }
+ }
+ reportStream.Flush();
+ reportStream.Close();
}
- }
+
+ }
+
+
}