25 references to WhereKeyword
Microsoft.CodeAnalysis.CSharp (7)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
168
syntax.ConstraintClauses[0].
WhereKeyword
, MessageID.IDS_OverrideWithConstraints, diagnostics);
Symbols\Symbol.cs (1)
1501
constraintClauses[0].
WhereKeyword
.GetLocation());
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)
11684
if (whereKeyword != this.
WhereKeyword
|| name != this.Name || colonToken != this.ColonToken || constraints != this.Constraints)
11695
public TypeParameterConstraintClauseSyntax WithName(IdentifierNameSyntax name) => Update(this.
WhereKeyword
, name, this.ColonToken, this.Constraints);
11696
public TypeParameterConstraintClauseSyntax WithColonToken(SyntaxToken colonToken) => Update(this.
WhereKeyword
, this.Name, colonToken, this.Constraints);
11697
public TypeParameterConstraintClauseSyntax WithConstraints(SeparatedSyntaxList<TypeParameterConstraintSyntax> constraints) => Update(this.
WhereKeyword
, this.Name, this.ColonToken, constraints);
Microsoft.CodeAnalysis.CSharp.Features (1)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1722
return TextSpan.FromBounds(constraint.
WhereKeyword
.SpanStart, constraint.Constraints.Last().Span.End);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (1)
1558
var constraintStart = constraintSyntax.
WhereKeyword
.SpanStart;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (16)
Generated\Syntax.Test.xml.Generated.cs (2)
13309
Assert.Equal(SyntaxKind.WhereKeyword, node.
WhereKeyword
.Kind());
13313
var newNode = node.WithWhereKeyword(node.
WhereKeyword
).WithName(node.Name).WithColonToken(node.ColonToken).WithConstraints(node.Constraints);
Parsing\DeclarationParsingTests.cs (14)
1126
Assert.NotEqual(default, cs.ConstraintClauses[0].
WhereKeyword
);
1167
Assert.NotEqual(default, cs.ConstraintClauses[0].
WhereKeyword
);
1229
Assert.NotEqual(default, cs.ConstraintClauses[0].
WhereKeyword
);
1273
Assert.NotEqual(default, cs.ConstraintClauses[0].
WhereKeyword
);
1314
Assert.NotEqual(default, cs.ConstraintClauses[0].
WhereKeyword
);
1355
Assert.NotEqual(default, cs.ConstraintClauses[0].
WhereKeyword
);
1411
Assert.NotEqual(default, cs.ConstraintClauses[0].
WhereKeyword
);
1422
Assert.NotEqual(default, cs.ConstraintClauses[1].
WhereKeyword
);
1466
Assert.NotEqual(default, cs.ConstraintClauses[0].
WhereKeyword
);
1477
Assert.NotEqual(default, cs.ConstraintClauses[1].
WhereKeyword
);
1512
Assert.NotEqual(default, cs.ConstraintClauses[0].
WhereKeyword
);
1523
Assert.NotEqual(default, cs.ConstraintClauses[1].
WhereKeyword
);
1560
Assert.NotEqual(default, cs.ConstraintClauses[0].
WhereKeyword
);
3439
Assert.NotEqual(default, ms.ConstraintClauses[0].
WhereKeyword
);