Skip to content

Commit

Permalink
Add the Simplifier annotation to the newly created syntax tree (see D…
Browse files Browse the repository at this point in the history
  • Loading branch information
sharwell committed Nov 19, 2014
1 parent c84786a commit cac7241
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Friend Class NullCheck_CodeRefactoringCodeRefactoringProvider
Dim if_ = SyntaxFactory.SingleLineIfStatement(
_IsExpr_,
New SyntaxList(Of StatementSyntax)().Add(throwExpr),
Nothing).WithAdditionalAnnotations(Formatting.Formatter.Annotation)
Nothing).WithAdditionalAnnotations(Formatting.Formatter.Annotation, Simplification.Simplifier.Annotation)

Dim newStatements = method.Statements.Insert(0, if_)
Dim newBlock = method.WithStatements(newStatements)
Expand Down

0 comments on commit cac7241

Please sign in to comment.