14 references to NewKeyword
Microsoft.CodeAnalysis.CSharp (4)
Syntax.xml.Main.Generated.cs (1)
2032=> node.Update(VisitToken(node.NewKeyword), VisitToken(node.OpenParenToken), VisitToken(node.CloseParenToken));
Syntax.xml.Syntax.Generated.cs (3)
11744if (newKeyword != this.NewKeyword || openParenToken != this.OpenParenToken || closeParenToken != this.CloseParenToken) 11755public ConstructorConstraintSyntax WithOpenParenToken(SyntaxToken openParenToken) => Update(this.NewKeyword, openParenToken, this.CloseParenToken); 11756public ConstructorConstraintSyntax WithCloseParenToken(SyntaxToken closeParenToken) => Update(this.NewKeyword, this.OpenParenToken, closeParenToken);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (10)
Generated\Syntax.Test.xml.Generated.cs (2)
13322Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind()); 13325var newNode = node.WithNewKeyword(node.NewKeyword).WithOpenParenToken(node.OpenParenToken).WithCloseParenToken(node.CloseParenToken);
Parsing\DeclarationParsingTests.cs (8)
1237Assert.NotEqual(default, bound.NewKeyword); 1238Assert.False(bound.NewKeyword.IsMissing); 1375Assert.NotEqual(default, bound.NewKeyword); 1376Assert.False(bound.NewKeyword.IsMissing); 1430Assert.NotEqual(default, bound.NewKeyword); 1431Assert.False(bound.NewKeyword.IsMissing); 1580Assert.NotEqual(default, bound.NewKeyword); 1581Assert.False(bound.NewKeyword.IsMissing);