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