75 references to Identifier
Microsoft.CodeAnalysis.CSharp (18)
Compilation\SyntaxTreeSemanticModel.cs (2)
1416var name = declarationSyntax.Identifier.ValueText; 1678return ((DelegateDeclarationSyntax)declaration).Identifier.ValueText;
Declarations\DeclarationTreeBuilder.cs (2)
826name: node.Identifier.ValueText, 831nameLocation: new SourceLocation(node.Identifier),
Symbols\NamespaceOrTypeSymbol.cs (1)
199return GetSourceTypeMember(syntax.Identifier.ValueText, syntax.Arity, syntax.Kind(), syntax);
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
30: base(delegateType, syntax.GetReference(), location: syntax.Identifier.GetLocation(), isIterator: false,
Symbols\Source\SourceMemberContainerSymbol.cs (1)
1924DelegateDeclarationSyntax delegateDecl => delegateDecl.Identifier,
Symbols\Source\SourceNamedTypeSymbol.cs (1)
119return ((DelegateDeclarationSyntax)node).Identifier;
Syntax.xml.Main.Generated.cs (1)
2011=> node.Update(VisitList(node.AttributeLists), VisitList(node.Modifiers), VisitToken(node.DelegateKeyword), (TypeSyntax?)Visit(node.ReturnType) ?? throw new ArgumentNullException("returnType"), VisitToken(node.Identifier), (TypeParameterListSyntax?)Visit(node.TypeParameterList), (ParameterListSyntax?)Visit(node.ParameterList) ?? throw new ArgumentNullException("parameterList"), VisitList(node.ConstraintClauses), VisitToken(node.SemicolonToken));
Syntax.xml.Syntax.Generated.cs (9)
11204if (attributeLists != this.AttributeLists || modifiers != this.Modifiers || delegateKeyword != this.DelegateKeyword || returnType != this.ReturnType || identifier != this.Identifier || typeParameterList != this.TypeParameterList || parameterList != this.ParameterList || constraintClauses != this.ConstraintClauses || semicolonToken != this.SemicolonToken) 11215public new DelegateDeclarationSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.Modifiers, this.DelegateKeyword, this.ReturnType, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken); 11217public new DelegateDeclarationSyntax WithModifiers(SyntaxTokenList modifiers) => Update(this.AttributeLists, modifiers, this.DelegateKeyword, this.ReturnType, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken); 11218public DelegateDeclarationSyntax WithDelegateKeyword(SyntaxToken delegateKeyword) => Update(this.AttributeLists, this.Modifiers, delegateKeyword, this.ReturnType, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken); 11219public DelegateDeclarationSyntax WithReturnType(TypeSyntax returnType) => Update(this.AttributeLists, this.Modifiers, this.DelegateKeyword, returnType, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken); 11221public DelegateDeclarationSyntax WithTypeParameterList(TypeParameterListSyntax? typeParameterList) => Update(this.AttributeLists, this.Modifiers, this.DelegateKeyword, this.ReturnType, this.Identifier, typeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken); 11222public DelegateDeclarationSyntax WithParameterList(ParameterListSyntax parameterList) => Update(this.AttributeLists, this.Modifiers, this.DelegateKeyword, this.ReturnType, this.Identifier, this.TypeParameterList, parameterList, this.ConstraintClauses, this.SemicolonToken); 11223public DelegateDeclarationSyntax WithConstraintClauses(SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses) => Update(this.AttributeLists, this.Modifiers, this.DelegateKeyword, this.ReturnType, this.Identifier, this.TypeParameterList, this.ParameterList, constraintClauses, this.SemicolonToken); 11224public DelegateDeclarationSyntax WithSemicolonToken(SyntaxToken semicolonToken) => Update(this.AttributeLists, this.Modifiers, this.DelegateKeyword, this.ReturnType, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, semicolonToken);
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
44return ((DelegateDeclarationSyntax)member).Identifier;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1270DelegateDeclarationSyntax delegateDecl => delegateDecl.Identifier,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
162EqualIdentifierName(x.Identifier, y.Identifier, out result);
Microsoft.CodeAnalysis.CSharp.Features (4)
CodeLens\CSharpCodeLensMemberFinder.cs (1)
90_memberBuilder.Add(new CodeLensMember(node, node.Identifier.Span));
EditAndContinue\SyntaxComparer.cs (1)
1445return ((DelegateDeclarationSyntax)node).Identifier;
SolutionExplorer\CSharpSolutionExplorerSymbolTreeItemProvider.cs (2)
113nameBuilder.Append(delegateDeclaration.Identifier.ValueText); 129delegateDeclaration.Identifier));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (28)
Generated\Syntax.Test.xml.Generated.cs (2)
13231Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind()); 13236var newNode = node.WithAttributeLists(node.AttributeLists).WithModifiers(node.Modifiers).WithDelegateKeyword(node.DelegateKeyword).WithReturnType(node.ReturnType).WithIdentifier(node.Identifier).WithTypeParameterList(node.TypeParameterList).WithParameterList(node.ParameterList).WithConstraintClauses(node.ConstraintClauses).WithSemicolonToken(node.SemicolonToken);
Parsing\DeclarationParsingTests.cs (26)
2008Assert.NotEqual(default, ds.Identifier); 2009Assert.Equal("b", ds.Identifier.ToString()); 2035Assert.NotEqual(default, ds.Identifier); 2036Assert.Equal("b", ds.Identifier.ToString()); 2063Assert.NotEqual(default, ds.Identifier); 2064Assert.Equal("b", ds.Identifier.ToString()); 2110Assert.NotEqual(default, ds.Identifier); 2111Assert.Equal("b", ds.Identifier.ToString()); 2156Assert.NotEqual(default, ds.Identifier); 2157Assert.Equal("b", ds.Identifier.ToString()); 2191Assert.NotEqual(default, ds.Identifier); 2192Assert.Equal("b", ds.Identifier.ToString()); 2226Assert.NotEqual(default, ds.Identifier); 2227Assert.Equal("b", ds.Identifier.ToString()); 2268Assert.NotEqual(default, ds.Identifier); 2269Assert.Equal("b", ds.Identifier.ToString()); 2304Assert.NotEqual(default, ds.Identifier); 2305Assert.Equal("b", ds.Identifier.ToString()); 2340Assert.NotEqual(default, ds.Identifier); 2341Assert.Equal("b", ds.Identifier.ToString()); 2377Assert.NotEqual(default, ds.Identifier); 2378Assert.Equal("b", ds.Identifier.ToString()); 2410Assert.NotEqual(default, ds.Identifier); 2411Assert.Equal("b", ds.Identifier.ToString()); 2461Assert.NotEqual(default, ds.Identifier); 2462Assert.Equal("c", ds.Identifier.ToString());
Microsoft.CodeAnalysis.CSharp.Workspaces (9)
Classification\ClassificationHelpers.cs (1)
198else if (token.Parent is DelegateDeclarationSyntax delegateDecl && delegateDecl.Identifier == token)
CodeGeneration\CSharpSyntaxGenerator.cs (2)
2059DelegateDeclarationSyntax delegateDeclaration => delegateDeclaration.Identifier.ValueText, 2086DelegateDeclarationSyntax delegateDeclaration => ReplaceWithTrivia(declaration, delegateDeclaration.Identifier, id),
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (2)
297delegateDecl.Identifier.ValueText, 305delegateDecl.Identifier.Span,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
44return ((DelegateDeclarationSyntax)member).Identifier;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1270DelegateDeclarationSyntax delegateDecl => delegateDecl.Identifier,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
162EqualIdentifierName(x.Identifier, y.Identifier, out result);
Microsoft.DotNet.GenFacades (2)
TypeParser.cs (2)
85fullyQualifiedName = GetFullyQualifiedName((BaseTypeDeclarationSyntax)item.Parent, item.Identifier.ValueText.Trim()); 119string typeName = type.Identifier.ValueText;
Microsoft.VisualStudio.LanguageServices.CSharp (6)
CodeModel\CSharpCodeModelService.CodeModelEventCollector.cs (2)
596if (!StringComparer.Ordinal.Equals(oldDelegate.Identifier.ToString(), newDelegate.Identifier.ToString()))
CodeModel\CSharpCodeModelService.cs (1)
809return ((DelegateDeclarationSyntax)node).Identifier.ToString();
CodeModel\CSharpCodeModelService.NodeLocator.cs (2)
632startPosition = node.Identifier.SpanStart; 1122endPosition = node.Identifier.Span.End;
CodeModel\CSharpCodeModelService.NodeNameGenerator.cs (1)
186builder.Append(delegateDeclaration.Identifier.ValueText);
Roslyn.Diagnostics.CSharp.Analyzers (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
44return ((DelegateDeclarationSyntax)member).Identifier;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1270DelegateDeclarationSyntax delegateDecl => delegateDecl.Identifier,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
162EqualIdentifierName(x.Identifier, y.Identifier, out result);