73 references to Attribute
Microsoft.CodeAnalysis.CSharp (19)
_generated\1\Syntax.xml.Internal.Generated.cs (2)
32041return new AttributeSyntax(SyntaxKind.Attribute, name, argumentList, this.context); 37463return new AttributeSyntax(SyntaxKind.Attribute, name, argumentList);
_generated\2\Syntax.xml.Syntax.Generated.cs (1)
10021/// <item><description><see cref="SyntaxKind.Attribute"/></description></item>
Binder\Binder_Attributes.cs (1)
290Debug.Assert(boundAttribute.Syntax.Kind() == SyntaxKind.Attribute);
Binder\Binder_Symbols.cs (1)
950if (node.Parent.Kind() == SyntaxKind.Attribute)
Binder\ExpressionVariableFinder.cs (1)
40case SyntaxKind.Attribute:
Compilation\AttributeSemanticModel.cs (2)
65case SyntaxKind.Attribute: 87if (node.Kind() == SyntaxKind.Attribute)
Compilation\CSharpSemanticModel.cs (1)
4001parentSyntax.Kind() == SyntaxKind.Attribute && ((AttributeSyntax)parentSyntax).Name == boundNode.Syntax)
Compilation\MemberSemanticModel.cs (1)
314else if (kind == SyntaxKind.Attribute)
Compilation\SpeculativeSemanticModelWithMemberModel.cs (1)
150var attributeOrParameter = node.FirstAncestorOrSelf<SyntaxNode>(static n => n.Kind() is SyntaxKind.Attribute or SyntaxKind.Parameter);
Compilation\SyntaxTreeSemanticModel.cs (3)
952case SyntaxKind.Attribute: 1235case SyntaxKind.Attribute: 1292(node.Kind() == SyntaxKind.Attribute) || (node.Kind() == SyntaxKind.Parameter);
Parser\LanguageParser.cs (1)
1199if (this.IsIncrementalAndFactoryContextMatches && this.CurrentNodeKind == SyntaxKind.Attribute)
Syntax\SyntaxExtensions.cs (1)
257case SyntaxKind.Attribute:
Syntax\SyntaxFacts.cs (2)
90case Attribute: 330case Attribute:
Syntax\SyntaxNodeExtensions.cs (1)
92case SyntaxKind.Attribute:
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\NullableImpactingSpanWalker.cs (1)
101if (node.IsParentKind(SyntaxKind.Attribute))
src\roslyn\src\Analyzers\CSharp\Analyzers\UseNameofInNullableAttribute\CSharpUseNameofInNullableAttributeDiagnosticAnalyzer.cs (1)
42context.RegisterSyntaxNodeAction(AnalyzeAttribute, SyntaxKind.Attribute);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1154=> node.IsKind(SyntaxKind.Attribute) &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
163public int Attribute => (int)SyntaxKind.Attribute;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (2)
97node.Kind() is SyntaxKind.Attribute or 158case SyntaxKind.Attribute:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
61token.Parent.IsParentKind(SyntaxKind.Attribute)) 69token.Parent.IsParentKind(SyntaxKind.Attribute))
Microsoft.CodeAnalysis.CSharp.Features (14)
ChangeSignature\CSharpChangeSignatureService.cs (4)
64SyntaxKind.Attribute, 76SyntaxKind.Attribute, 96SyntaxKind.Attribute, 278case SyntaxKind.Attribute:
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (5)
1749case SyntaxKind.Attribute: 2131case SyntaxKind.Attribute: 2414case SyntaxKind.Attribute: 2446case SyntaxKind.Attribute: 2469case SyntaxKind.Attribute:
EditAndContinue\SyntaxComparer.cs (3)
677case SyntaxKind.Attribute: 921case SyntaxKind.Attribute: 1510case SyntaxKind.Attribute:
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\NullableImpactingSpanWalker.cs (1)
101if (node.IsParentKind(SyntaxKind.Attribute))
src\roslyn\src\Analyzers\CSharp\Analyzers\UseNameofInNullableAttribute\CSharpUseNameofInNullableAttributeDiagnosticAnalyzer.cs (1)
42context.RegisterSyntaxNodeAction(AnalyzeAttribute, SyntaxKind.Attribute);
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (3)
Microsoft.NetCore.Analyzers\InteropServices\CSharpSpecifyMarshalingForPInvokeStringArguments.Fixer.cs (1)
22return node.IsKind(SyntaxKind.Attribute);
Microsoft.NetCore.Analyzers\Performance\CSharpConstantExpectedAnalyzer.cs (1)
24context.RegisterSyntaxNodeAction(context => OnAttributeNode(context, constantExpectedContext), SyntaxKind.Attribute);
Microsoft.NetCore.Analyzers\Resources\CSharpMarkAssembliesWithNeutralResourcesLanguage.cs (1)
40}, SyntaxKind.Attribute);
Microsoft.CodeAnalysis.CSharp.Workspaces (16)
Classification\SyntaxClassification\NameSyntaxClassifier.cs (1)
42=> node.IsParentKind(SyntaxKind.Attribute);
CodeGeneration\CSharpSyntaxGenerator.cs (8)
1113case SyntaxKind.Attribute: 1161case SyntaxKind.Attribute: 1181case SyntaxKind.Attribute: 2022case SyntaxKind.Attribute: 2198case SyntaxKind.Attribute: 2260case SyntaxKind.Attribute: 2929case SyntaxKind.Attribute: 3152case SyntaxKind.Attribute:
Simplification\Simplifiers\NameSimplifier.cs (1)
496if (name.Parent.Kind() == SyntaxKind.Attribute || name.IsRightSideOfDotOrColonColon())
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1154=> node.IsKind(SyntaxKind.Attribute) &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
163public int Attribute => (int)SyntaxKind.Attribute;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (2)
97node.Kind() is SyntaxKind.Attribute or 158case SyntaxKind.Attribute:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
61token.Parent.IsParentKind(SyntaxKind.Attribute)) 69token.Parent.IsParentKind(SyntaxKind.Attribute))
Microsoft.Gen.BuildMetadata (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
87if (node.IsKind(SyntaxKind.Attribute))
Microsoft.Gen.ComplianceReports (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
87if (node.IsKind(SyntaxKind.Attribute))
Microsoft.Gen.ContextualOptions (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
87if (node.IsKind(SyntaxKind.Attribute))
Microsoft.Gen.Logging (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
87if (node.IsKind(SyntaxKind.Attribute))
Microsoft.Gen.MetadataExtractor (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
87if (node.IsKind(SyntaxKind.Attribute))
Microsoft.Gen.Metrics (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
87if (node.IsKind(SyntaxKind.Attribute))
Microsoft.Gen.MetricsReports (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
87if (node.IsKind(SyntaxKind.Attribute))
Roslyn.Diagnostics.CSharp.Analyzers (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1154=> node.IsKind(SyntaxKind.Attribute) &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
163public int Attribute => (int)SyntaxKind.Attribute;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (2)
97node.Kind() is SyntaxKind.Attribute or 158case SyntaxKind.Attribute:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
61token.Parent.IsParentKind(SyntaxKind.Attribute)) 69token.Parent.IsParentKind(SyntaxKind.Attribute))