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
diff options
context:
space:
mode:
authorGRODNO\Anton_Sokolovskii <a.sokolovsky15@gmail.com>2017-10-27 17:25:57 +0300
committerJoel Martinez <joelmartinez@gmail.com>2017-10-27 22:29:02 +0300
commit7ff462ea9f47f1665df4fa94a5a52c4268194221 (patch)
treefcc336eac41b58bde3b702e1d78e0c753c9da813
parent412a78bc068984b33a2976a2d9f048077c183215 (diff)
mdoc: Insert default thread safety information.
Added sample attribute "supported" and complex "memberScope" with 3 values. Updated file MyClass.xml for integration test "check-monodocer-membergroup" Closes #113
-rw-r--r--mdoc/Resources/monodoc-ecma.xsd19
-rw-r--r--mdoc/Test/en.expected-membergroup/MyNamespace/MyClass.xml3
2 files changed, 19 insertions, 3 deletions
diff --git a/mdoc/Resources/monodoc-ecma.xsd b/mdoc/Resources/monodoc-ecma.xsd
index 552f11d0..3bcbb197 100644
--- a/mdoc/Resources/monodoc-ecma.xsd
+++ b/mdoc/Resources/monodoc-ecma.xsd
@@ -48,7 +48,8 @@ add masterdoc support?
<xs:attribute name="type" type="xs:string" />
<xs:attribute name="Type" type="xs:string" />
<xs:attribute name="TypeParamName" type="xs:string" />
- <xs:attribute name="overwrite" type ="xs:boolean" />
+ <xs:attribute name="overwrite" type="xs:boolean" />
+ <xs:attribute name="supported" type="xs:boolean"/>
<!-- define simple elements -->
<xs:element name="AssemblyName" type="xs:string" />
@@ -294,6 +295,16 @@ add masterdoc support?
<xs:enumeration value="recipe" />
</xs:restriction>
</xs:simpleType>
+
+ <xs:attribute name="memberScope">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="all"/>
+ <xs:enumeration value="static"/>
+ <xs:enumeration value="instance"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
<xs:element name="related">
<xs:complexType mixed="true">
@@ -824,15 +835,17 @@ add masterdoc support?
<xs:element ref="whitespace" />
</xs:choice>
</xs:complexType>
- </xs:element>
+ </xs:element>
<xs:element name="theta" />
<xs:element name="threadsafe">
<xs:complexType>
<xs:sequence>
- <xs:element ref="para" minOccurs="1" maxOccurs="unbounded" />
+ <xs:element ref="para" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
+ <xs:attribute ref="supported" />
+ <xs:attribute ref="memberScope" />
</xs:complexType>
</xs:element>
diff --git a/mdoc/Test/en.expected-membergroup/MyNamespace/MyClass.xml b/mdoc/Test/en.expected-membergroup/MyNamespace/MyClass.xml
index 061b8ed8..0d906d57 100644
--- a/mdoc/Test/en.expected-membergroup/MyNamespace/MyClass.xml
+++ b/mdoc/Test/en.expected-membergroup/MyNamespace/MyClass.xml
@@ -16,6 +16,7 @@
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
+ <threadsafe supported="true" memberScope="all" />
</Docs>
<Members>
<Member MemberName=".ctor">
@@ -29,6 +30,7 @@
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
+ <threadsafe supported="true" memberScope="static" />
</Docs>
</Member>
<MemberGroup MemberName="SomeMethod">
@@ -36,6 +38,7 @@
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
+ <threadsafe supported="true" memberScope="instance" />
<remarks>To be added.</remarks>
<summary>To be added.</summary>
</Docs>