28 references to Identifier
Microsoft.CodeAnalysis.CSharp (13)
Symbols\Source\SourceDestructorSymbol.cs (3)
32if (syntax.Identifier.ValueText != containingType.Name && !containingType.IsExtension) 34diagnostics.Add(ErrorCode.ERR_BadDestructorName, syntax.Identifier.GetLocation()); 78location = syntax.Identifier.GetLocation();
Symbols\Source\SourceMemberContainerSymbol.cs (1)
5594new SourceLocation(destructorSyntax.Identifier));
Syntax.xml.Main.Generated.cs (1)
2074=> node.Update(VisitList(node.AttributeLists), VisitList(node.Modifiers), VisitToken(node.TildeToken), VisitToken(node.Identifier), (ParameterListSyntax?)Visit(node.ParameterList) ?? throw new ArgumentNullException("parameterList"), (BlockSyntax?)Visit(node.Body), (ArrowExpressionClauseSyntax?)Visit(node.ExpressionBody), VisitToken(node.SemicolonToken));
Syntax.xml.Syntax.Generated.cs (8)
12964if (attributeLists != this.AttributeLists || modifiers != this.Modifiers || tildeToken != this.TildeToken || identifier != this.Identifier || parameterList != this.ParameterList || body != this.Body || expressionBody != this.ExpressionBody || semicolonToken != this.SemicolonToken) 12975public new DestructorDeclarationSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.Modifiers, this.TildeToken, this.Identifier, this.ParameterList, this.Body, this.ExpressionBody, this.SemicolonToken); 12977public new DestructorDeclarationSyntax WithModifiers(SyntaxTokenList modifiers) => Update(this.AttributeLists, modifiers, this.TildeToken, this.Identifier, this.ParameterList, this.Body, this.ExpressionBody, this.SemicolonToken); 12978public DestructorDeclarationSyntax WithTildeToken(SyntaxToken tildeToken) => Update(this.AttributeLists, this.Modifiers, tildeToken, this.Identifier, this.ParameterList, this.Body, this.ExpressionBody, this.SemicolonToken); 12981public new DestructorDeclarationSyntax WithParameterList(ParameterListSyntax parameterList) => Update(this.AttributeLists, this.Modifiers, this.TildeToken, this.Identifier, parameterList, this.Body, this.ExpressionBody, this.SemicolonToken); 12983public new DestructorDeclarationSyntax WithBody(BlockSyntax? body) => Update(this.AttributeLists, this.Modifiers, this.TildeToken, this.Identifier, this.ParameterList, body, this.ExpressionBody, this.SemicolonToken); 12985public new DestructorDeclarationSyntax WithExpressionBody(ArrowExpressionClauseSyntax? expressionBody) => Update(this.AttributeLists, this.Modifiers, this.TildeToken, this.Identifier, this.ParameterList, this.Body, expressionBody, this.SemicolonToken); 12987public new DestructorDeclarationSyntax WithSemicolonToken(SyntaxToken semicolonToken) => Update(this.AttributeLists, this.Modifiers, this.TildeToken, this.Identifier, this.ParameterList, this.Body, this.ExpressionBody, semicolonToken);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
58return ((DestructorDeclarationSyntax)member).Identifier;
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Diagnostics\GetDiagnosticsTests.cs (1)
1156DestructorDeclarationSyntax destructorDecl => destructorDecl.Identifier.GetLocation(),
Microsoft.CodeAnalysis.CSharp.Features (4)
CodeLens\CSharpCodeLensMemberFinder.cs (1)
121_memberBuilder.Add(new CodeLensMember(node, node.Identifier.Span));
EditAndContinue\SyntaxComparer.cs (1)
1471return ((DestructorDeclarationSyntax)node).Identifier;
Organizing\Organizers\DestructorDeclarationOrganizer.cs (1)
32syntax.Identifier,
SolutionExplorer\CSharpSolutionExplorerSymbolTreeItemProvider.cs (1)
159AddConstructorOrDestructorDeclaration(destructorDeclaration, destructorDeclaration.Identifier);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
Copilot\CSharpImplementNotImplementedExceptionFixProviderTests.cs (1)
546DestructorDeclarationSyntax destructor => destructor.TildeToken.Text + destructor.Identifier.Text,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Generated\Syntax.Test.xml.Generated.cs (2)
13517Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind()); 13522var newNode = node.WithAttributeLists(node.AttributeLists).WithModifiers(node.Modifiers).WithTildeToken(node.TildeToken).WithIdentifier(node.Identifier).WithParameterList(node.ParameterList).WithBody(node.Body).WithExpressionBody(node.ExpressionBody).WithSemicolonToken(node.SemicolonToken);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Classification\ClassificationHelpers.cs (1)
220else if (token.Parent is DestructorDeclarationSyntax destructorDeclaration && destructorDeclaration.Identifier == token)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
58return ((DestructorDeclarationSyntax)member).Identifier;
Microsoft.VisualStudio.LanguageServices.CSharp (3)
CodeModel\CSharpCodeModelService.cs (1)
816return "~" + ((DestructorDeclarationSyntax)node).Identifier.ToString();
CodeModel\CSharpCodeModelService.NodeLocator.cs (2)
401startPosition = ((DestructorDeclarationSyntax)node).Identifier.SpanStart; 964endPosition = ((DestructorDeclarationSyntax)node).Identifier.Span.End;
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
58return ((DestructorDeclarationSyntax)member).Identifier;