36 references to Identifier
Microsoft.CodeAnalysis.CSharp (13)
Binder\Binder_Constraints.cs (2)
340if (!isForOverride && !hasTypeLikeConstraint && !AreNullableAnnotationsEnabled(typeParameterSyntax.Identifier)) 379return isForOverride || AreNullableAnnotationsEnabled(typeParameterSyntax.Identifier) ? TypeParameterConstraintClause.Empty : TypeParameterConstraintClause.ObliviousNullabilityIfReferenceType;
Symbols\Source\LocalFunctionSymbol.cs (1)
427var identifier = parameter.Identifier;
Symbols\Source\SourceNamedTypeSymbol.cs (4)
202var location = new SourceLocation(tp.Identifier); 205ReportReservedTypeName(tp.Identifier.Text, this.DeclaringCompilation, diagnostics.DiagnosticBag, location); 209name = typeParameterNames[i] = tp.Identifier.ValueText; 247else if (name != tp.Identifier.ValueText)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
1167var identifier = parameter.Identifier;
Symbols\Source\TypeParameterBuilder.cs (1)
39syntaxNode.Identifier.ValueText,
Syntax.xml.Main.Generated.cs (1)
1993=> node.Update(VisitList(node.AttributeLists), VisitToken(node.VarianceKeyword), VisitToken(node.Identifier));
Syntax.xml.Syntax.Generated.cs (3)
10203if (attributeLists != this.AttributeLists || varianceKeyword != this.VarianceKeyword || identifier != this.Identifier) 10213public TypeParameterSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.VarianceKeyword, this.Identifier); 10214public TypeParameterSyntax WithVarianceKeyword(SyntaxToken varianceKeyword) => Update(this.AttributeLists, varianceKeyword, this.Identifier);
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ILocalSymbolExtensions.cs (1)
45return typeParameters.HasValue && typeParameters.Value.Any(typeParameter => typeParameter.Identifier.ValueText == name);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
872builder.Append(string.Join(", ", typeParameterList.Parameters.Select(static p => p.Identifier.ValueText)));
Microsoft.CodeAnalysis.CSharp.Features (4)
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (1)
102list.Add("/// <typeparam name=\"" + typeParam.Identifier.ValueText + "\"></typeparam>");
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1726return typeParameter.Identifier.Span;
EditAndContinue\SyntaxComparer.cs (1)
1497return ((TypeParameterSyntax)node).Identifier;
SolutionExplorer\CSharpSolutionExplorerSymbolTreeItemProvider.cs (1)
366static (parameter, builder) => builder.Append(parameter.Identifier.ValueText));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.cs (2)
439step => Assert.True(step.Outputs.Single().Value is TypeParameterSyntax { Identifier.ValueText: "T" })); 787step => Assert.True(step.Outputs.Single().Value is TypeParameterSyntax { Identifier.ValueText: "T" }));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Generated\Syntax.Test.xml.Generated.cs (2)
13114Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind()); 13115var newNode = node.WithAttributeLists(node.AttributeLists).WithVarianceKeyword(node.VarianceKeyword).WithIdentifier(node.Identifier);
Parsing\DeclarationParsingTests.cs (1)
1640Assert.Equal("B", gn.Parameters[0].Identifier.ToString());
Microsoft.CodeAnalysis.CSharp.Workspaces (9)
Classification\ClassificationHelpers.cs (1)
202else if (token.Parent is TypeParameterSyntax typeParameter && typeParameter.Identifier == token)
CodeGeneration\CSharpSyntaxGenerator.cs (2)
2071TypeParameterSyntax typeParameter => typeParameter.Identifier.ValueText, 2102TypeParameterSyntax typeParameter => ReplaceWithTrivia(declaration, typeParameter.Identifier, id),
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (2)
527builder.Append(parameter.Identifier.Text); 646var typeParameterNames = methodDeclaration.TypeParameterList?.Parameters.SelectAsArray(p => p.Identifier.Text);
Rename\CSharpRenameRewriterLanguageService.cs (2)
901if (typeParameter != currentTypeParameter && token.ValueText == typeParameter.Identifier.ValueText) 902conflicts.Add(reverseMappedLocations[typeParameter.Identifier.GetLocation()]);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ILocalSymbolExtensions.cs (1)
45return typeParameters.HasValue && typeParameters.Value.Any(typeParameter => typeParameter.Identifier.ValueText == name);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
872builder.Append(string.Join(", ", typeParameterList.Parameters.Select(static p => p.Identifier.ValueText)));
Microsoft.ML.InternalCodeAnalyzer (1)
TypeParamNameAnalyzer.cs (1)
42var identifier = node.Identifier;
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ILocalSymbolExtensions.cs (1)
45return typeParameters.HasValue && typeParameters.Value.Any(typeParameter => typeParameter.Identifier.ValueText == name);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
872builder.Append(string.Join(", ", typeParameterList.Parameters.Select(static p => p.Identifier.ValueText)));