diff options
author | Joel Martinez <joelmartinez@gmail.com> | 2018-05-25 23:33:51 +0300 |
---|---|---|
committer | Joel Martinez <joelmartinez@gmail.com> | 2018-05-26 00:24:36 +0300 |
commit | f92ac8bcf7f4c0f7c1f12c3d23c1e5a829d7041d (patch) | |
tree | 40beb77d3a3cc657d27e9cfde9d55f7f455490e6 /mdoc/Test | |
parent | 90c6935eaf1336be53ccd6c80037653137a4344b (diff) |
Attributes now receive `FrameworkAlternate`.
This is for both types, members, and assembly attributes. Resolves #76
Diffstat (limited to 'mdoc/Test')
15 files changed, 219 insertions, 0 deletions
diff --git a/mdoc/Test/DocTest-frameworkalternate.cs b/mdoc/Test/DocTest-frameworkalternate.cs index 28a81f70..092f8ca6 100644 --- a/mdoc/Test/DocTest-frameworkalternate.cs +++ b/mdoc/Test/DocTest-frameworkalternate.cs @@ -1,12 +1,18 @@ +using System; + namespace Monodoc.Test { + public class FirstAttribute : Attribute {} + public class SecondAttribute : Attribute {} public class MyClass { #if FXONE + [First] public void Meth(int a, string b, int c) {} #endif #if FXTWO + [First, Second] public void Meth(int a, string d, int c) {} #endif } diff --git a/mdoc/Test/en.expected-frameworkalternate-aligned/FrameworksIndex/One.xml b/mdoc/Test/en.expected-frameworkalternate-aligned/FrameworksIndex/One.xml index 8248544a..a8c88e19 100644 --- a/mdoc/Test/en.expected-frameworkalternate-aligned/FrameworksIndex/One.xml +++ b/mdoc/Test/en.expected-frameworkalternate-aligned/FrameworksIndex/One.xml @@ -1,9 +1,15 @@ <?xml version="1.0" encoding="utf-8"?> <Framework Name="One"> <Namespace Name="Monodoc.Test"> + <Type Name="Monodoc.Test.FirstAttribute" Id="T:Monodoc.Test.FirstAttribute"> + <Member Id="M:Monodoc.Test.FirstAttribute.#ctor" /> + </Type> <Type Name="Monodoc.Test.MyClass" Id="T:Monodoc.Test.MyClass"> <Member Id="M:Monodoc.Test.MyClass.#ctor" /> <Member Id="M:Monodoc.Test.MyClass.Meth(System.Int32,System.String,System.Int32)" /> </Type> + <Type Name="Monodoc.Test.SecondAttribute" Id="T:Monodoc.Test.SecondAttribute"> + <Member Id="M:Monodoc.Test.SecondAttribute.#ctor" /> + </Type> </Namespace> </Framework>
\ No newline at end of file diff --git a/mdoc/Test/en.expected-frameworkalternate-aligned/FrameworksIndex/Three.xml b/mdoc/Test/en.expected-frameworkalternate-aligned/FrameworksIndex/Three.xml index 9bb0a092..75f797af 100644 --- a/mdoc/Test/en.expected-frameworkalternate-aligned/FrameworksIndex/Three.xml +++ b/mdoc/Test/en.expected-frameworkalternate-aligned/FrameworksIndex/Three.xml @@ -1,9 +1,15 @@ <?xml version="1.0" encoding="utf-8"?> <Framework Name="Three"> <Namespace Name="Monodoc.Test"> + <Type Name="Monodoc.Test.FirstAttribute" Id="T:Monodoc.Test.FirstAttribute"> + <Member Id="M:Monodoc.Test.FirstAttribute.#ctor" /> + </Type> <Type Name="Monodoc.Test.MyClass" Id="T:Monodoc.Test.MyClass"> <Member Id="M:Monodoc.Test.MyClass.#ctor" /> <Member Id="M:Monodoc.Test.MyClass.Meth(System.Int32,System.String,System.Int32)" /> </Type> + <Type Name="Monodoc.Test.SecondAttribute" Id="T:Monodoc.Test.SecondAttribute"> + <Member Id="M:Monodoc.Test.SecondAttribute.#ctor" /> + </Type> </Namespace> </Framework>
\ No newline at end of file diff --git a/mdoc/Test/en.expected-frameworkalternate-aligned/FrameworksIndex/Two.xml b/mdoc/Test/en.expected-frameworkalternate-aligned/FrameworksIndex/Two.xml index 7ba7f611..fc5ce8dd 100644 --- a/mdoc/Test/en.expected-frameworkalternate-aligned/FrameworksIndex/Two.xml +++ b/mdoc/Test/en.expected-frameworkalternate-aligned/FrameworksIndex/Two.xml @@ -1,9 +1,15 @@ <?xml version="1.0" encoding="utf-8"?> <Framework Name="Two"> <Namespace Name="Monodoc.Test"> + <Type Name="Monodoc.Test.FirstAttribute" Id="T:Monodoc.Test.FirstAttribute"> + <Member Id="M:Monodoc.Test.FirstAttribute.#ctor" /> + </Type> <Type Name="Monodoc.Test.MyClass" Id="T:Monodoc.Test.MyClass"> <Member Id="M:Monodoc.Test.MyClass.#ctor" /> <Member Id="M:Monodoc.Test.MyClass.Meth(System.Int32,System.String,System.Int32)" /> </Type> + <Type Name="Monodoc.Test.SecondAttribute" Id="T:Monodoc.Test.SecondAttribute"> + <Member Id="M:Monodoc.Test.SecondAttribute.#ctor" /> + </Type> </Namespace> </Framework>
\ No newline at end of file diff --git a/mdoc/Test/en.expected-frameworkalternate-aligned/Monodoc.Test/FirstAttribute.xml b/mdoc/Test/en.expected-frameworkalternate-aligned/Monodoc.Test/FirstAttribute.xml new file mode 100644 index 00000000..85eac346 --- /dev/null +++ b/mdoc/Test/en.expected-frameworkalternate-aligned/Monodoc.Test/FirstAttribute.xml @@ -0,0 +1,40 @@ +<Type Name="FirstAttribute" FullName="Monodoc.Test.FirstAttribute"> + <TypeSignature Language="C#" Value="public class FirstAttribute : Attribute" /> + <TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit FirstAttribute extends System.Attribute" /> + <AssemblyInfo> + <AssemblyName>DocTest-frameworkalternate-one</AssemblyName> + <AssemblyVersion>0.0.0.0</AssemblyVersion> + </AssemblyInfo> + <AssemblyInfo> + <AssemblyName>DocTest-frameworkalternate-two</AssemblyName> + <AssemblyVersion>0.0.0.0</AssemblyVersion> + </AssemblyInfo> + <Base> + <BaseTypeName>System.Attribute</BaseTypeName> + </Base> + <Interfaces /> + <Docs> + <summary>To be added.</summary> + <remarks>To be added.</remarks> + </Docs> + <Members> + <Member MemberName=".ctor"> + <MemberSignature Language="C#" Value="public FirstAttribute ();" /> + <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" /> + <MemberType>Constructor</MemberType> + <AssemblyInfo> + <AssemblyName>DocTest-frameworkalternate-one</AssemblyName> + <AssemblyVersion>0.0.0.0</AssemblyVersion> + </AssemblyInfo> + <AssemblyInfo> + <AssemblyName>DocTest-frameworkalternate-two</AssemblyName> + <AssemblyVersion>0.0.0.0</AssemblyVersion> + </AssemblyInfo> + <Parameters /> + <Docs> + <summary>To be added.</summary> + <remarks>To be added.</remarks> + </Docs> + </Member> + </Members> +</Type> diff --git a/mdoc/Test/en.expected-frameworkalternate-aligned/Monodoc.Test/MyClass.xml b/mdoc/Test/en.expected-frameworkalternate-aligned/Monodoc.Test/MyClass.xml index 8a01c986..b7e6ee6d 100644 --- a/mdoc/Test/en.expected-frameworkalternate-aligned/Monodoc.Test/MyClass.xml +++ b/mdoc/Test/en.expected-frameworkalternate-aligned/Monodoc.Test/MyClass.xml @@ -48,6 +48,11 @@ <AssemblyName>DocTest-frameworkalternate-two</AssemblyName> <AssemblyVersion>0.0.0.0</AssemblyVersion> </AssemblyInfo> + <Attributes> + <Attribute> + <AttributeName>Monodoc.Test.First</AttributeName> + </Attribute> + </Attributes> <ReturnValue> <ReturnType>System.Void</ReturnType> </ReturnValue> diff --git a/mdoc/Test/en.expected-frameworkalternate-aligned/Monodoc.Test/SecondAttribute.xml b/mdoc/Test/en.expected-frameworkalternate-aligned/Monodoc.Test/SecondAttribute.xml new file mode 100644 index 00000000..f797bfe4 --- /dev/null +++ b/mdoc/Test/en.expected-frameworkalternate-aligned/Monodoc.Test/SecondAttribute.xml @@ -0,0 +1,40 @@ +<Type Name="SecondAttribute" FullName="Monodoc.Test.SecondAttribute"> + <TypeSignature Language="C#" Value="public class SecondAttribute : Attribute" /> + <TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit SecondAttribute extends System.Attribute" /> + <AssemblyInfo> + <AssemblyName>DocTest-frameworkalternate-one</AssemblyName> + <AssemblyVersion>0.0.0.0</AssemblyVersion> + </AssemblyInfo> + <AssemblyInfo> + <AssemblyName>DocTest-frameworkalternate-two</AssemblyName> + <AssemblyVersion>0.0.0.0</AssemblyVersion> + </AssemblyInfo> + <Base> + <BaseTypeName>System.Attribute</BaseTypeName> + </Base> + <Interfaces /> + <Docs> + <summary>To be added.</summary> + <remarks>To be added.</remarks> + </Docs> + <Members> + <Member MemberName=".ctor"> + <MemberSignature Language="C#" Value="public SecondAttribute ();" /> + <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" /> + <MemberType>Constructor</MemberType> + <AssemblyInfo> + <AssemblyName>DocTest-frameworkalternate-one</AssemblyName> + <AssemblyVersion>0.0.0.0</AssemblyVersion> + </AssemblyInfo> + <AssemblyInfo> + <AssemblyName>DocTest-frameworkalternate-two</AssemblyName> + <AssemblyVersion>0.0.0.0</AssemblyVersion> + </AssemblyInfo> + <Parameters /> + <Docs> + <summary>To be added.</summary> + <remarks>To be added.</remarks> + </Docs> + </Member> + </Members> +</Type> diff --git a/mdoc/Test/en.expected-frameworkalternate-aligned/index.xml b/mdoc/Test/en.expected-frameworkalternate-aligned/index.xml index 264c4b95..d544561f 100644 --- a/mdoc/Test/en.expected-frameworkalternate-aligned/index.xml +++ b/mdoc/Test/en.expected-frameworkalternate-aligned/index.xml @@ -25,7 +25,9 @@ <Copyright>To be added.</Copyright> <Types> <Namespace Name="Monodoc.Test"> + <Type Name="FirstAttribute" Kind="Class" /> <Type Name="MyClass" Kind="Class" /> + <Type Name="SecondAttribute" Kind="Class" /> </Namespace> </Types> <Title>Untitled</Title> diff --git a/mdoc/Test/en.expected-frameworkalternate/FrameworksIndex/One.xml b/mdoc/Test/en.expected-frameworkalternate/FrameworksIndex/One.xml index 8248544a..a8c88e19 100644 --- a/mdoc/Test/en.expected-frameworkalternate/FrameworksIndex/One.xml +++ b/mdoc/Test/en.expected-frameworkalternate/FrameworksIndex/One.xml @@ -1,9 +1,15 @@ <?xml version="1.0" encoding="utf-8"?> <Framework Name="One"> <Namespace Name="Monodoc.Test"> + <Type Name="Monodoc.Test.FirstAttribute" Id="T:Monodoc.Test.FirstAttribute"> + <Member Id="M:Monodoc.Test.FirstAttribute.#ctor" /> + </Type> <Type Name="Monodoc.Test.MyClass" Id="T:Monodoc.Test.MyClass"> <Member Id="M:Monodoc.Test.MyClass.#ctor" /> <Member Id="M:Monodoc.Test.MyClass.Meth(System.Int32,System.String,System.Int32)" /> </Type> + <Type Name="Monodoc.Test.SecondAttribute" Id="T:Monodoc.Test.SecondAttribute"> + <Member Id="M:Monodoc.Test.SecondAttribute.#ctor" /> + </Type> </Namespace> </Framework>
\ No newline at end of file diff --git a/mdoc/Test/en.expected-frameworkalternate/FrameworksIndex/Three.xml b/mdoc/Test/en.expected-frameworkalternate/FrameworksIndex/Three.xml index 9bb0a092..75f797af 100644 --- a/mdoc/Test/en.expected-frameworkalternate/FrameworksIndex/Three.xml +++ b/mdoc/Test/en.expected-frameworkalternate/FrameworksIndex/Three.xml @@ -1,9 +1,15 @@ <?xml version="1.0" encoding="utf-8"?> <Framework Name="Three"> <Namespace Name="Monodoc.Test"> + <Type Name="Monodoc.Test.FirstAttribute" Id="T:Monodoc.Test.FirstAttribute"> + <Member Id="M:Monodoc.Test.FirstAttribute.#ctor" /> + </Type> <Type Name="Monodoc.Test.MyClass" Id="T:Monodoc.Test.MyClass"> <Member Id="M:Monodoc.Test.MyClass.#ctor" /> <Member Id="M:Monodoc.Test.MyClass.Meth(System.Int32,System.String,System.Int32)" /> </Type> + <Type Name="Monodoc.Test.SecondAttribute" Id="T:Monodoc.Test.SecondAttribute"> + <Member Id="M:Monodoc.Test.SecondAttribute.#ctor" /> + </Type> </Namespace> </Framework>
\ No newline at end of file diff --git a/mdoc/Test/en.expected-frameworkalternate/FrameworksIndex/Two.xml b/mdoc/Test/en.expected-frameworkalternate/FrameworksIndex/Two.xml index 7ba7f611..fc5ce8dd 100644 --- a/mdoc/Test/en.expected-frameworkalternate/FrameworksIndex/Two.xml +++ b/mdoc/Test/en.expected-frameworkalternate/FrameworksIndex/Two.xml @@ -1,9 +1,15 @@ <?xml version="1.0" encoding="utf-8"?> <Framework Name="Two"> <Namespace Name="Monodoc.Test"> + <Type Name="Monodoc.Test.FirstAttribute" Id="T:Monodoc.Test.FirstAttribute"> + <Member Id="M:Monodoc.Test.FirstAttribute.#ctor" /> + </Type> <Type Name="Monodoc.Test.MyClass" Id="T:Monodoc.Test.MyClass"> <Member Id="M:Monodoc.Test.MyClass.#ctor" /> <Member Id="M:Monodoc.Test.MyClass.Meth(System.Int32,System.String,System.Int32)" /> </Type> + <Type Name="Monodoc.Test.SecondAttribute" Id="T:Monodoc.Test.SecondAttribute"> + <Member Id="M:Monodoc.Test.SecondAttribute.#ctor" /> + </Type> </Namespace> </Framework>
\ No newline at end of file diff --git a/mdoc/Test/en.expected-frameworkalternate/Monodoc.Test/FirstAttribute.xml b/mdoc/Test/en.expected-frameworkalternate/Monodoc.Test/FirstAttribute.xml new file mode 100644 index 00000000..85eac346 --- /dev/null +++ b/mdoc/Test/en.expected-frameworkalternate/Monodoc.Test/FirstAttribute.xml @@ -0,0 +1,40 @@ +<Type Name="FirstAttribute" FullName="Monodoc.Test.FirstAttribute"> + <TypeSignature Language="C#" Value="public class FirstAttribute : Attribute" /> + <TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit FirstAttribute extends System.Attribute" /> + <AssemblyInfo> + <AssemblyName>DocTest-frameworkalternate-one</AssemblyName> + <AssemblyVersion>0.0.0.0</AssemblyVersion> + </AssemblyInfo> + <AssemblyInfo> + <AssemblyName>DocTest-frameworkalternate-two</AssemblyName> + <AssemblyVersion>0.0.0.0</AssemblyVersion> + </AssemblyInfo> + <Base> + <BaseTypeName>System.Attribute</BaseTypeName> + </Base> + <Interfaces /> + <Docs> + <summary>To be added.</summary> + <remarks>To be added.</remarks> + </Docs> + <Members> + <Member MemberName=".ctor"> + <MemberSignature Language="C#" Value="public FirstAttribute ();" /> + <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" /> + <MemberType>Constructor</MemberType> + <AssemblyInfo> + <AssemblyName>DocTest-frameworkalternate-one</AssemblyName> + <AssemblyVersion>0.0.0.0</AssemblyVersion> + </AssemblyInfo> + <AssemblyInfo> + <AssemblyName>DocTest-frameworkalternate-two</AssemblyName> + <AssemblyVersion>0.0.0.0</AssemblyVersion> + </AssemblyInfo> + <Parameters /> + <Docs> + <summary>To be added.</summary> + <remarks>To be added.</remarks> + </Docs> + </Member> + </Members> +</Type> diff --git a/mdoc/Test/en.expected-frameworkalternate/Monodoc.Test/MyClass.xml b/mdoc/Test/en.expected-frameworkalternate/Monodoc.Test/MyClass.xml index a0559f3b..4632b3fa 100644 --- a/mdoc/Test/en.expected-frameworkalternate/Monodoc.Test/MyClass.xml +++ b/mdoc/Test/en.expected-frameworkalternate/Monodoc.Test/MyClass.xml @@ -50,6 +50,14 @@ <AssemblyName>DocTest-frameworkalternate-two</AssemblyName> <AssemblyVersion>0.0.0.0</AssemblyVersion> </AssemblyInfo> + <Attributes> + <Attribute> + <AttributeName>Monodoc.Test.First</AttributeName> + </Attribute> + <Attribute FrameworkAlternate="Two"> + <AttributeName>Monodoc.Test.Second</AttributeName> + </Attribute> + </Attributes> <ReturnValue> <ReturnType>System.Void</ReturnType> </ReturnValue> diff --git a/mdoc/Test/en.expected-frameworkalternate/Monodoc.Test/SecondAttribute.xml b/mdoc/Test/en.expected-frameworkalternate/Monodoc.Test/SecondAttribute.xml new file mode 100644 index 00000000..f797bfe4 --- /dev/null +++ b/mdoc/Test/en.expected-frameworkalternate/Monodoc.Test/SecondAttribute.xml @@ -0,0 +1,40 @@ +<Type Name="SecondAttribute" FullName="Monodoc.Test.SecondAttribute"> + <TypeSignature Language="C#" Value="public class SecondAttribute : Attribute" /> + <TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit SecondAttribute extends System.Attribute" /> + <AssemblyInfo> + <AssemblyName>DocTest-frameworkalternate-one</AssemblyName> + <AssemblyVersion>0.0.0.0</AssemblyVersion> + </AssemblyInfo> + <AssemblyInfo> + <AssemblyName>DocTest-frameworkalternate-two</AssemblyName> + <AssemblyVersion>0.0.0.0</AssemblyVersion> + </AssemblyInfo> + <Base> + <BaseTypeName>System.Attribute</BaseTypeName> + </Base> + <Interfaces /> + <Docs> + <summary>To be added.</summary> + <remarks>To be added.</remarks> + </Docs> + <Members> + <Member MemberName=".ctor"> + <MemberSignature Language="C#" Value="public SecondAttribute ();" /> + <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" /> + <MemberType>Constructor</MemberType> + <AssemblyInfo> + <AssemblyName>DocTest-frameworkalternate-one</AssemblyName> + <AssemblyVersion>0.0.0.0</AssemblyVersion> + </AssemblyInfo> + <AssemblyInfo> + <AssemblyName>DocTest-frameworkalternate-two</AssemblyName> + <AssemblyVersion>0.0.0.0</AssemblyVersion> + </AssemblyInfo> + <Parameters /> + <Docs> + <summary>To be added.</summary> + <remarks>To be added.</remarks> + </Docs> + </Member> + </Members> +</Type> diff --git a/mdoc/Test/en.expected-frameworkalternate/index.xml b/mdoc/Test/en.expected-frameworkalternate/index.xml index 264c4b95..d544561f 100644 --- a/mdoc/Test/en.expected-frameworkalternate/index.xml +++ b/mdoc/Test/en.expected-frameworkalternate/index.xml @@ -25,7 +25,9 @@ <Copyright>To be added.</Copyright> <Types> <Namespace Name="Monodoc.Test"> + <Type Name="FirstAttribute" Kind="Class" /> <Type Name="MyClass" Kind="Class" /> + <Type Name="SecondAttribute" Kind="Class" /> </Namespace> </Types> <Title>Untitled</Title> |