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