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