accessor_declarations
{
lexer.PropertyParsing = false;
-
+
if (doc_support)
- current_property.DocComment = ConsumeStoredComment ();
+ current_property.DocComment = ConsumeStoredComment ();
}
CLOSE_BRACE
{
lbag.AppendToMember (current_property, GetLocation ($1), GetLocation ($4));
end_block (GetLocation ($4));
current_local_parameters = null;
+
+ if (doc_support)
+ Lexer.doc_state = XmlCommentState.Allowed;
}
;
--- /dev/null
+<?xml version="1.0"?>
+<doc>
+ <assembly>
+ <name>test-xml-074</name>
+ </assembly>
+ <members>
+ <member name="T:Test">
+ <summary>The Test</summary>
+ </member>
+ <member name="P:Test.Foo">
+ <summary>The Foo</summary>
+ </member>
+ <member name="F:Test.TestFoo">
+ <summary>Tests the Foo</summary>
+ </member>
+ </members>
+</doc>
--- /dev/null
+// Compiler options: -warnaserror -doc:xml-074.xml
+using System.Collections.Generic;
+
+ /// <summary>The Test</summary>
+ public class Test
+ {
+ /// <summary>The Foo</summary>
+ protected Dictionary<string, object> Foo { get; set; } = new Dictionary<string, object>();
+
+ /// <summary>Tests the Foo</summary>
+ protected bool TestFoo;
+
+ static void Main ()
+ {
+ }
+ }