Skip to content

Commit

Permalink
Fix formatting for anonymous types
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrusNajmabadi committed Oct 5, 2021
1 parent 19514ee commit 6fd59f1
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ private ReferenceRewriter(
//
// Should become:
// var a = new { x = 42; };
return node.Update(SyntaxFactory.NameEquals(identifier), (ExpressionSyntax)Visit(expression))
.WithAdditionalAnnotations(Simplifier.Annotation, Formatter.Annotation);
return node.Update(SyntaxFactory.NameEquals(identifier), (ExpressionSyntax)Visit(expression));
}

public static SyntaxNode Visit(
Expand Down

0 comments on commit 6fd59f1

Please sign in to comment.