34 references to ColonToken
Microsoft.CodeAnalysis.CSharp (5)
Syntax.xml.Main.Generated.cs (1)
2029=> node.Update(VisitToken(node.WhereKeyword), (IdentifierNameSyntax?)Visit(node.Name) ?? throw new ArgumentNullException("name"), VisitToken(node.ColonToken), VisitList(node.Constraints));
Syntax.xml.Syntax.Generated.cs (4)
11684if (whereKeyword != this.WhereKeyword || name != this.Name || colonToken != this.ColonToken || constraints != this.Constraints) 11694public TypeParameterConstraintClauseSyntax WithWhereKeyword(SyntaxToken whereKeyword) => Update(whereKeyword, this.Name, this.ColonToken, this.Constraints); 11695public TypeParameterConstraintClauseSyntax WithName(IdentifierNameSyntax name) => Update(this.WhereKeyword, name, this.ColonToken, this.Constraints); 11697public TypeParameterConstraintClauseSyntax WithConstraints(SeparatedSyntaxList<TypeParameterConstraintSyntax> constraints) => Update(this.WhereKeyword, this.Name, this.ColonToken, constraints);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (29)
Generated\Syntax.Test.xml.Generated.cs (2)
13311Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.Kind()); 13313var newNode = node.WithWhereKeyword(node.WhereKeyword).WithName(node.Name).WithColonToken(node.ColonToken).WithConstraints(node.Constraints);
Parsing\DeclarationParsingTests.cs (27)
1129Assert.NotEqual(default, cs.ConstraintClauses[0].ColonToken); 1130Assert.False(cs.ConstraintClauses[0].ColonToken.IsMissing); 1170Assert.NotEqual(default, cs.ConstraintClauses[0].ColonToken); 1171Assert.False(cs.ConstraintClauses[0].ColonToken.IsMissing); 1232Assert.NotEqual(default, cs.ConstraintClauses[0].ColonToken); 1233Assert.False(cs.ConstraintClauses[0].ColonToken.IsMissing); 1276Assert.NotEqual(default, cs.ConstraintClauses[0].ColonToken); 1277Assert.False(cs.ConstraintClauses[0].ColonToken.IsMissing); 1317Assert.NotEqual(default, cs.ConstraintClauses[0].ColonToken); 1318Assert.False(cs.ConstraintClauses[0].ColonToken.IsMissing); 1358Assert.NotEqual(default, cs.ConstraintClauses[0].ColonToken); 1359Assert.False(cs.ConstraintClauses[0].ColonToken.IsMissing); 1414Assert.NotEqual(default, cs.ConstraintClauses[0].ColonToken); 1415Assert.False(cs.ConstraintClauses[0].ColonToken.IsMissing); 1425Assert.NotEqual(default, cs.ConstraintClauses[1].ColonToken); 1426Assert.False(cs.ConstraintClauses[1].ColonToken.IsMissing); 1469Assert.NotEqual(default, cs.ConstraintClauses[0].ColonToken); 1470Assert.False(cs.ConstraintClauses[0].ColonToken.IsMissing); 1480Assert.NotEqual(default, cs.ConstraintClauses[1].ColonToken); 1481Assert.True(cs.ConstraintClauses[1].ColonToken.IsMissing); 1515Assert.NotEqual(default, cs.ConstraintClauses[0].ColonToken); 1516Assert.False(cs.ConstraintClauses[0].ColonToken.IsMissing); 1525Assert.True(cs.ConstraintClauses[1].ColonToken.IsMissing); 1563Assert.NotEqual(default, cs.ConstraintClauses[0].ColonToken); 1564Assert.False(cs.ConstraintClauses[0].ColonToken.IsMissing); 3442Assert.NotEqual(default, ms.ConstraintClauses[0].ColonToken); 3443Assert.False(ms.ConstraintClauses[0].ColonToken.IsMissing);