class A {
[return: System.Xml.Serialization.XmlElementAttribute(""rval"")]
public void Bar() {
}
}
";
CSharpParser parser = new CSharpParser();
SyntaxTree syntaxTree = parser.Parse(new StringReader(code));
string code1 = syntaxTree.ToString();
// At this point, [return: is rendered as [@return:
CSharpParser parser1 = new CSharpParser();
SyntaxTree syntaxTree1 = parser.Parse(new StringReader(code1));
string code2 = syntaxTree1.ToString();
// At this point, Bar() will totally miss the [return: attribute.
class A {
[return: System.Xml.Serialization.XmlElementAttribute(""rval"")] public void Bar() { } } ";