36 references to Identifier
Microsoft.CodeAnalysis.CSharp (13)
_generated\0\Syntax.xml.Main.Generated.cs (1)
1987=> node.Update(VisitToken(node.Identifier), VisitToken(node.ColonToken));
_generated\2\Syntax.xml.Syntax.Generated.cs (2)
9909if (identifier != this.Identifier || colonToken != this.ColonToken) 9920public AttributeTargetSpecifierSyntax WithColonToken(SyntaxToken colonToken) => Update(this.Identifier, colonToken);
Declarations\DeclarationTreeBuilder.cs (1)
727if (attributeListSyntax.Target?.Identifier.ToAttributeLocation() == AttributeLocation.Method)
Symbols\Symbol_Attributes.cs (6)
707targetOpt.Identifier.ToAttributeLocation() == AttributeLocation.Module) 723targetOpt.Identifier.GetLocation(), targetOpt.Identifier.ValueText, allowedTargets.ToDisplayString()); 741diagnostics.Add(ErrorCode.ERR_GlobalAttributesNotAllowed, targetOpt.Identifier.GetLocation()); 752targetOpt.Identifier.GetLocation(), targetOpt.Identifier.ToString(), allowedTargets.ToDisplayString());
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (2)
181MessageID.IDS_FeaturePrimaryConstructors.CheckFeatureAvailability(diagnostics, attributeDeclarationSyntax, attributeDeclarationSyntax.Target.Identifier.GetLocation()); 187SyntaxToken target = attributeDeclarationSyntax.Target.Identifier;
Syntax\AttributeTargetSpecifierSyntax.cs (1)
15return this.Identifier.ToAttributeLocation();
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessarySuppressions\CSharpRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.cs (1)
20switch (attributeList.Target?.Identifier.Kind())
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (3)
337(parent.Target.Identifier.IsKindOrHasMatchingText(SyntaxKind.AssemblyKeyword) || 338parent.Target.Identifier.IsKindOrHasMatchingText(SyntaxKind.ModuleKeyword))) 399parent.Target.Identifier.Kind() is SyntaxKind.AssemblyKeyword or SyntaxKind.ModuleKeyword &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1156attributeList.Target?.Identifier.Kind() == attributeTarget;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (1)
530if (attributeList is { Target.Identifier: var identifier })
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
127if (attributeList.Target is { Identifier.RawKind: var kind })
Microsoft.CodeAnalysis.CSharp.Features (3)
CodeFixes\Suppression\CSharpSuppressionCodeFixProvider.cs (1)
90attributeList.Target.Identifier.Kind() == SyntaxKind.AssemblyKeyword;
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (1)
103var methodTargetingAttributes = typeDeclaration.AttributeLists.Where(list => list.Target?.Identifier.ValueText == "method");
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessarySuppressions\CSharpRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.cs (1)
20switch (attributeList.Target?.Identifier.Kind())
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
1019=> list.Target?.Identifier.IsKind(SyntaxKind.ReturnKeyword) ?? false;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (3)
337(parent.Target.Identifier.IsKindOrHasMatchingText(SyntaxKind.AssemblyKeyword) || 338parent.Target.Identifier.IsKindOrHasMatchingText(SyntaxKind.ModuleKeyword))) 399parent.Target.Identifier.Kind() is SyntaxKind.AssemblyKeyword or SyntaxKind.ModuleKeyword &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1156attributeList.Target?.Identifier.Kind() == attributeTarget;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (1)
530if (attributeList is { Target.Identifier: var identifier })
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
127if (attributeList.Target is { Identifier.RawKind: var kind })
Roslyn.Diagnostics.CSharp.Analyzers (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (3)
337(parent.Target.Identifier.IsKindOrHasMatchingText(SyntaxKind.AssemblyKeyword) || 338parent.Target.Identifier.IsKindOrHasMatchingText(SyntaxKind.ModuleKeyword))) 399parent.Target.Identifier.Kind() is SyntaxKind.AssemblyKeyword or SyntaxKind.ModuleKeyword &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1156attributeList.Target?.Identifier.Kind() == attributeTarget;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (1)
530if (attributeList is { Target.Identifier: var identifier })
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
127if (attributeList.Target is { Identifier.RawKind: var kind })