提交 8d7c587f 编写于 作者: V Victor Zaytsev

Fixed #18882

上级 3f86d718
......@@ -4491,8 +4491,7 @@ class C
void M()
{
var t = new {
/*comment*/
i = 1 + 2,
/*comment*/ i = 1 + 2,
/*comment*/ j = 3
};
}
......
......@@ -332,7 +332,7 @@ public override SyntaxNode VisitAnonymousObjectMemberDeclarator(AnonymousObjectM
var inferredName = node.Expression.TryGetInferredMemberName();
if (inferredName != null)
{
var identifier = SyntaxFactory.Identifier(inferredName);
var identifier = SyntaxFactory.Identifier(SyntaxTriviaList.Empty, inferredName, SyntaxTriviaList.Empty);
identifier = TryEscapeIdentifierToken(identifier, node, _semanticModel);
newDeclarator = newDeclarator
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册