41 references to Name
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder_Constraints.cs (3)
61
var name = clause.
Name
.Identifier.ValueText;
78
diagnostics.Add(ErrorCode.ERR_DuplicateConstraintClause, clause.
Name
.Location, name);
90
diagnostics.Add(ErrorCode.ERR_TyVarNotFoundInConstraint, clause.
Name
.Location, name, containingSymbol.ConstructedFrom());
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)
11694
public TypeParameterConstraintClauseSyntax WithWhereKeyword(SyntaxToken whereKeyword) => Update(whereKeyword, this.
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 (3)
ConvertToExtension\ConvertToExtensionCodeRefactoringProvider.cs (1)
351
c => !extensionMethodInfo.MethodTypeParameters.Any(t => t.Name == c.
Name
.Identifier.ValueText))];
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1390
var symbolInfo = model.GetSymbolInfo(constraintClause.
Name
, cancellationToken);
EditAndContinue\SyntaxComparer.cs (1)
1494
return ((TypeParameterConstraintClauseSyntax)node).
Name
.Identifier;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (29)
Generated\Syntax.Test.xml.Generated.cs (2)
13310
Assert.NotNull(node.
Name
);
13313
var newNode = node.WithWhereKeyword(node.WhereKeyword).WithName(node.
Name
).WithColonToken(node.ColonToken).WithConstraints(node.Constraints);
Parsing\DeclarationParsingTests.cs (27)
1127
Assert.NotNull(cs.ConstraintClauses[0].
Name
);
1128
Assert.Equal("b", cs.ConstraintClauses[0].
Name
.ToString());
1168
Assert.NotNull(cs.ConstraintClauses[0].
Name
);
1169
Assert.Equal("b", cs.ConstraintClauses[0].
Name
.ToString());
1230
Assert.NotNull(cs.ConstraintClauses[0].
Name
);
1231
Assert.Equal("b", cs.ConstraintClauses[0].
Name
.ToString());
1274
Assert.NotNull(cs.ConstraintClauses[0].
Name
);
1275
Assert.Equal("b", cs.ConstraintClauses[0].
Name
.ToString());
1315
Assert.NotNull(cs.ConstraintClauses[0].
Name
);
1316
Assert.Equal("b", cs.ConstraintClauses[0].
Name
.ToString());
1356
Assert.NotNull(cs.ConstraintClauses[0].
Name
);
1357
Assert.Equal("b", cs.ConstraintClauses[0].
Name
.ToString());
1412
Assert.NotNull(cs.ConstraintClauses[0].
Name
);
1413
Assert.Equal("b", cs.ConstraintClauses[0].
Name
.ToString());
1423
Assert.NotNull(cs.ConstraintClauses[1].
Name
);
1424
Assert.Equal("b", cs.ConstraintClauses[1].
Name
.ToString());
1467
Assert.NotNull(cs.ConstraintClauses[0].
Name
);
1468
Assert.Equal("b", cs.ConstraintClauses[0].
Name
.ToString());
1478
Assert.NotNull(cs.ConstraintClauses[1].
Name
);
1479
Assert.Equal("b", cs.ConstraintClauses[1].
Name
.ToString());
1513
Assert.NotNull(cs.ConstraintClauses[0].
Name
);
1514
Assert.Equal("b", cs.ConstraintClauses[0].
Name
.ToString());
1524
Assert.True(cs.ConstraintClauses[1].
Name
.IsMissing);
1561
Assert.NotNull(cs.ConstraintClauses[0].
Name
);
1562
Assert.Equal("b", cs.ConstraintClauses[0].
Name
.ToString());
3440
Assert.NotNull(ms.ConstraintClauses[0].
Name
);
3441
Assert.Equal("b", ms.ConstraintClauses[0].
Name
.ToString());
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
1868
var clause = clauses.FirstOrDefault(c => c.
Name
.Identifier.ToString() == typeParameterName);