374 references to Attribute
Microsoft.CodeAnalysis.CSharp (16)
Binder\Binder_Attributes.cs (1)
288
Debug.Assert(boundAttribute.Syntax.Kind() == SyntaxKind.
Attribute
);
Binder\Binder_Symbols.cs (1)
938
if (node.Parent.Kind() == SyntaxKind.
Attribute
)
Binder\ExpressionVariableFinder.cs (1)
40
case SyntaxKind.
Attribute
:
Compilation\AttributeSemanticModel.cs (2)
65
case SyntaxKind.
Attribute
:
87
if (node.Kind() == SyntaxKind.
Attribute
)
Compilation\CSharpSemanticModel.cs (1)
3976
parentSyntax.Kind() == SyntaxKind.
Attribute
&& ((AttributeSyntax)parentSyntax).Name == boundNode.Syntax)
Compilation\MemberSemanticModel.cs (1)
313
else if (kind == SyntaxKind.
Attribute
)
Compilation\SpeculativeSemanticModelWithMemberModel.cs (1)
150
var attributeOrParameter = node.FirstAncestorOrSelf<SyntaxNode>(static n => n.Kind() is SyntaxKind.
Attribute
or SyntaxKind.Parameter);
Compilation\SyntaxTreeSemanticModel.cs (3)
952
case SyntaxKind.
Attribute
:
1235
case SyntaxKind.
Attribute
:
1292
(node.Kind() == SyntaxKind.
Attribute
) || (node.Kind() == SyntaxKind.Parameter);
Parser\LanguageParser.cs (1)
1190
if (this.IsIncrementalAndFactoryContextMatches && this.CurrentNodeKind == SyntaxKind.
Attribute
)
Syntax\SyntaxExtensions.cs (1)
257
case SyntaxKind.
Attribute
:
Syntax\SyntaxFacts.cs (2)
90
case
Attribute
:
330
case
Attribute
:
Syntax\SyntaxNodeExtensions.cs (1)
92
case SyntaxKind.
Attribute
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
src\Analyzers\CSharp\Analyzers\UseNameofInNullableAttribute\CSharpUseNameofInNullableAttributeDiagnosticAnalyzer.cs (1)
48
context.RegisterSyntaxNodeAction(AnalyzeAttribute, SyntaxKind.
Attribute
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
286
case SyntaxKind.
Attribute
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1241
=> node.IsKind(SyntaxKind.
Attribute
) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
152
public int Attribute => (int)SyntaxKind.
Attribute
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (2)
97
node.Kind() is SyntaxKind.
Attribute
or
158
case SyntaxKind.
Attribute
:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
60
token.Parent.IsParentKind(SyntaxKind.
Attribute
))
68
token.Parent.IsParentKind(SyntaxKind.
Attribute
))
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
Attributes\AttributeTests.cs (1)
3123
Assert.Equal(SyntaxKind.
Attribute
, attrs[0].ApplicationSyntaxReference.GetSyntax().Kind());
Diagnostics\DiagnosticAnalyzerTests.cs (2)
245
context.RegisterSyntaxNodeAction(AnalyzeNode, SyntaxKind.
Attribute
, SyntaxKind.ClassDeclaration, SyntaxKind.UsingDirective);
253
case SyntaxKind.
Attribute
:
Microsoft.CodeAnalysis.CSharp.Features (8)
ChangeSignature\CSharpChangeSignatureService.cs (4)
65
SyntaxKind.
Attribute
,
78
SyntaxKind.
Attribute
,
97
SyntaxKind.
Attribute
,
279
case SyntaxKind.
Attribute
:
EditAndContinue\SyntaxComparer.cs (3)
675
case SyntaxKind.
Attribute
:
916
case SyntaxKind.
Attribute
:
1498
case SyntaxKind.
Attribute
:
src\Analyzers\CSharp\Analyzers\UseNameofInNullableAttribute\CSharpUseNameofInNullableAttributeDiagnosticAnalyzer.cs (1)
48
context.RegisterSyntaxNodeAction(AnalyzeAttribute, SyntaxKind.
Attribute
);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\LambdaTests.cs (1)
6517
.Where(i => i.Ancestors().Any(a => a.IsKind(SyntaxKind.
Attribute
) || a.IsKind(SyntaxKind.DefaultExpression) || a.IsKind(SyntaxKind.InvocationExpression)))
Semantics\LocalFunctionTests.cs (4)
7641
.Where(i => i.Ancestors().Any(a => a.Kind() is SyntaxKind.
Attribute
or SyntaxKind.TypeConstraint or SyntaxKind.DefaultExpression or SyntaxKind.InvocationExpression or SyntaxKind.EqualsValueClause))
8686
.Where(i => i.Ancestors().Any(a => a.IsKind(SyntaxKind.
Attribute
) || a.IsKind(SyntaxKind.TypeConstraint) || a.IsKind(SyntaxKind.DefaultExpression) || a.IsKind(SyntaxKind.InvocationExpression)))
9554
.Where(i => i.Ancestors().Any(a => a.IsKind(SyntaxKind.
Attribute
)))
10174
.Where(i => i.Ancestors().Any(a => a.IsKind(SyntaxKind.
Attribute
)))
Semantics\TopLevelStatementsTests.cs (1)
7175
context.RegisterSyntaxNodeAction(Handle1, SyntaxKind.
Attribute
);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\SemanticModelGetSemanticInfoTests.cs (2)
8433
var attributeNode = tree.FindNodeOrTokenByKind(SyntaxKind.
Attribute
).AsNode() as AttributeSyntax;
8457
var attributeNode = tree.FindNodeOrTokenByKind(SyntaxKind.
Attribute
).AsNode() as AttributeSyntax;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (297)
IncrementalParsing\IncrementalParsingTests.cs (1)
798
N(SyntaxKind.
Attribute
);
Parsing\AnonymousFunctionParsingTests.cs (2)
2306
N(SyntaxKind.
Attribute
);
2386
N(SyntaxKind.
Attribute
);
Parsing\CollectionExpressionParsingTests.cs (96)
333
N(SyntaxKind.
Attribute
);
341
N(SyntaxKind.
Attribute
);
460
N(SyntaxKind.
Attribute
);
468
N(SyntaxKind.
Attribute
);
593
N(SyntaxKind.
Attribute
);
12010
N(SyntaxKind.
Attribute
);
12082
N(SyntaxKind.
Attribute
);
12428
N(SyntaxKind.
Attribute
);
12495
N(SyntaxKind.
Attribute
);
12562
N(SyntaxKind.
Attribute
);
12645
N(SyntaxKind.
Attribute
);
12742
N(SyntaxKind.
Attribute
);
12800
N(SyntaxKind.
Attribute
);
12817
N(SyntaxKind.
Attribute
);
12880
N(SyntaxKind.
Attribute
);
12888
N(SyntaxKind.
Attribute
);
13077
N(SyntaxKind.
Attribute
);
13089
N(SyntaxKind.
Attribute
);
13226
N(SyntaxKind.
Attribute
);
13238
N(SyntaxKind.
Attribute
);
13391
N(SyntaxKind.
Attribute
);
13403
N(SyntaxKind.
Attribute
);
13444
N(SyntaxKind.
Attribute
);
13569
N(SyntaxKind.
Attribute
);
13581
N(SyntaxKind.
Attribute
);
13763
N(SyntaxKind.
Attribute
);
13775
N(SyntaxKind.
Attribute
);
15591
N(SyntaxKind.
Attribute
);
15658
N(SyntaxKind.
Attribute
);
15745
N(SyntaxKind.
Attribute
);
15757
N(SyntaxKind.
Attribute
);
15824
N(SyntaxKind.
Attribute
);
15836
N(SyntaxKind.
Attribute
);
15923
N(SyntaxKind.
Attribute
);
15935
N(SyntaxKind.
Attribute
);
16006
N(SyntaxKind.
Attribute
);
16018
N(SyntaxKind.
Attribute
);
16109
N(SyntaxKind.
Attribute
);
16121
N(SyntaxKind.
Attribute
);
16200
N(SyntaxKind.
Attribute
);
16212
N(SyntaxKind.
Attribute
);
16311
N(SyntaxKind.
Attribute
);
16323
N(SyntaxKind.
Attribute
);
16407
N(SyntaxKind.
Attribute
);
16419
N(SyntaxKind.
Attribute
);
16523
N(SyntaxKind.
Attribute
);
16535
N(SyntaxKind.
Attribute
);
16606
N(SyntaxKind.
Attribute
);
16618
N(SyntaxKind.
Attribute
);
16709
N(SyntaxKind.
Attribute
);
16721
N(SyntaxKind.
Attribute
);
16790
N(SyntaxKind.
Attribute
);
16802
N(SyntaxKind.
Attribute
);
17002
N(SyntaxKind.
Attribute
);
17194
N(SyntaxKind.
Attribute
);
17222
N(SyntaxKind.
Attribute
);
17242
N(SyntaxKind.
Attribute
);
17250
N(SyntaxKind.
Attribute
);
17258
N(SyntaxKind.
Attribute
);
17271
N(SyntaxKind.
Attribute
);
17299
N(SyntaxKind.
Attribute
);
17319
N(SyntaxKind.
Attribute
);
17327
N(SyntaxKind.
Attribute
);
17335
N(SyntaxKind.
Attribute
);
17427
N(SyntaxKind.
Attribute
);
17455
N(SyntaxKind.
Attribute
);
17483
N(SyntaxKind.
Attribute
);
17491
N(SyntaxKind.
Attribute
);
17499
N(SyntaxKind.
Attribute
);
17512
N(SyntaxKind.
Attribute
);
17540
N(SyntaxKind.
Attribute
);
17568
N(SyntaxKind.
Attribute
);
17576
N(SyntaxKind.
Attribute
);
17584
N(SyntaxKind.
Attribute
);
17676
N(SyntaxKind.
Attribute
);
17704
N(SyntaxKind.
Attribute
);
17729
N(SyntaxKind.
Attribute
);
17737
N(SyntaxKind.
Attribute
);
17745
N(SyntaxKind.
Attribute
);
17758
N(SyntaxKind.
Attribute
);
17786
N(SyntaxKind.
Attribute
);
17811
N(SyntaxKind.
Attribute
);
17819
N(SyntaxKind.
Attribute
);
17827
N(SyntaxKind.
Attribute
);
17919
N(SyntaxKind.
Attribute
);
17947
N(SyntaxKind.
Attribute
);
17980
N(SyntaxKind.
Attribute
);
17988
N(SyntaxKind.
Attribute
);
17996
N(SyntaxKind.
Attribute
);
18009
N(SyntaxKind.
Attribute
);
18037
N(SyntaxKind.
Attribute
);
18070
N(SyntaxKind.
Attribute
);
18078
N(SyntaxKind.
Attribute
);
18086
N(SyntaxKind.
Attribute
);
18545
N(SyntaxKind.
Attribute
);
18571
N(SyntaxKind.
Attribute
);
Parsing\DeclarationParsingTests.cs (2)
7601
M(SyntaxKind.
Attribute
);
7663
M(SyntaxKind.
Attribute
);
Parsing\DeclarationScopeParsingTests.cs (5)
1210
N(SyntaxKind.
Attribute
);
1232
N(SyntaxKind.
Attribute
);
11531
N(SyntaxKind.
Attribute
);
11557
N(SyntaxKind.
Attribute
);
11565
N(SyntaxKind.
Attribute
);
Parsing\ExpressionParsingTests.cs (1)
6285
N(SyntaxKind.
Attribute
);
Parsing\LambdaAttributeParsingTests.cs (67)
49
N(SyntaxKind.
Attribute
);
89
N(SyntaxKind.
Attribute
);
97
N(SyntaxKind.
Attribute
);
139
N(SyntaxKind.
Attribute
);
151
N(SyntaxKind.
Attribute
);
205
N(SyntaxKind.
Attribute
);
246
N(SyntaxKind.
Attribute
);
334
N(SyntaxKind.
Attribute
);
367
N(SyntaxKind.
Attribute
);
402
N(SyntaxKind.
Attribute
);
441
N(SyntaxKind.
Attribute
);
484
N(SyntaxKind.
Attribute
);
527
N(SyntaxKind.
Attribute
);
535
N(SyntaxKind.
Attribute
);
566
N(SyntaxKind.
Attribute
);
578
N(SyntaxKind.
Attribute
);
609
N(SyntaxKind.
Attribute
);
657
N(SyntaxKind.
Attribute
);
692
N(SyntaxKind.
Attribute
);
730
N(SyntaxKind.
Attribute
);
770
N(SyntaxKind.
Attribute
);
813
N(SyntaxKind.
Attribute
);
856
N(SyntaxKind.
Attribute
);
1019
N(SyntaxKind.
Attribute
);
1124
N(SyntaxKind.
Attribute
);
1163
N(SyntaxKind.
Attribute
);
1317
N(SyntaxKind.
Attribute
);
1401
N(SyntaxKind.
Attribute
);
1441
N(SyntaxKind.
Attribute
);
1489
N(SyntaxKind.
Attribute
);
1576
N(SyntaxKind.
Attribute
);
1622
N(SyntaxKind.
Attribute
);
1669
N(SyntaxKind.
Attribute
);
1725
N(SyntaxKind.
Attribute
);
1760
N(SyntaxKind.
Attribute
);
1801
N(SyntaxKind.
Attribute
);
1859
N(SyntaxKind.
Attribute
);
1907
N(SyntaxKind.
Attribute
);
2286
M(SyntaxKind.
Attribute
);
2348
N(SyntaxKind.
Attribute
);
2415
N(SyntaxKind.
Attribute
);
2485
N(SyntaxKind.
Attribute
);
2664
N(SyntaxKind.
Attribute
);
2823
N(SyntaxKind.
Attribute
);
2856
N(SyntaxKind.
Attribute
);
2902
N(SyntaxKind.
Attribute
);
2930
N(SyntaxKind.
Attribute
);
3032
N(SyntaxKind.
Attribute
);
3057
N(SyntaxKind.
Attribute
);
3103
N(SyntaxKind.
Attribute
);
3128
N(SyntaxKind.
Attribute
);
3176
N(SyntaxKind.
Attribute
);
3201
N(SyntaxKind.
Attribute
);
3241
N(SyntaxKind.
Attribute
);
3287
N(SyntaxKind.
Attribute
);
3335
N(SyntaxKind.
Attribute
);
3403
N(SyntaxKind.
Attribute
);
3442
N(SyntaxKind.
Attribute
);
3479
N(SyntaxKind.
Attribute
);
3526
N(SyntaxKind.
Attribute
);
3728
N(SyntaxKind.
Attribute
);
3850
N(SyntaxKind.
Attribute
);
3979
N(SyntaxKind.
Attribute
);
4076
N(SyntaxKind.
Attribute
);
4193
N(SyntaxKind.
Attribute
);
4230
N(SyntaxKind.
Attribute
);
4365
N(SyntaxKind.
Attribute
);
Parsing\LambdaParameterParsingTests.cs (3)
3407
N(SyntaxKind.
Attribute
);
3488
N(SyntaxKind.
Attribute
);
5774
M(SyntaxKind.
Attribute
);
Parsing\LambdaReturnTypeParsingTests.cs (11)
1807
N(SyntaxKind.
Attribute
);
1852
N(SyntaxKind.
Attribute
);
5480
N(SyntaxKind.
Attribute
);
5523
N(SyntaxKind.
Attribute
);
5535
N(SyntaxKind.
Attribute
);
5574
N(SyntaxKind.
Attribute
);
5582
N(SyntaxKind.
Attribute
);
5629
N(SyntaxKind.
Attribute
);
5687
N(SyntaxKind.
Attribute
);
5740
N(SyntaxKind.
Attribute
);
5806
N(SyntaxKind.
Attribute
);
Parsing\LocalFunctionParsingTests.cs (8)
401
N(SyntaxKind.
Attribute
);
436
N(SyntaxKind.
Attribute
);
466
N(SyntaxKind.
Attribute
);
500
N(SyntaxKind.
Attribute
);
512
N(SyntaxKind.
Attribute
);
945
N(SyntaxKind.
Attribute
);
1025
N(SyntaxKind.
Attribute
);
1119
N(SyntaxKind.
Attribute
);
Parsing\ParserErrorMessageTests.cs (2)
5719
N(SyntaxKind.
Attribute
);
5727
N(SyntaxKind.
Attribute
);
Parsing\ScriptParsingTests.cs (11)
2298
N(SyntaxKind.
Attribute
);
2315
N(SyntaxKind.
Attribute
);
2329
N(SyntaxKind.
Attribute
);
2359
N(SyntaxKind.
Attribute
);
2386
N(SyntaxKind.
Attribute
);
2405
N(SyntaxKind.
Attribute
);
2424
N(SyntaxKind.
Attribute
);
2443
N(SyntaxKind.
Attribute
);
3547
N(SyntaxKind.
Attribute
);
3605
N(SyntaxKind.
Attribute
);
3973
N(SyntaxKind.
Attribute
);
Parsing\SingleLineDeclarationParsingTests.cs (1)
800
N(SyntaxKind.
Attribute
);
Parsing\StatementAttributeParsingTests.cs (80)
58
N(SyntaxKind.
Attribute
);
124
N(SyntaxKind.
Attribute
);
191
N(SyntaxKind.
Attribute
);
279
N(SyntaxKind.
Attribute
);
386
N(SyntaxKind.
Attribute
);
471
N(SyntaxKind.
Attribute
);
540
N(SyntaxKind.
Attribute
);
606
N(SyntaxKind.
Attribute
);
675
N(SyntaxKind.
Attribute
);
749
N(SyntaxKind.
Attribute
);
826
N(SyntaxKind.
Attribute
);
901
N(SyntaxKind.
Attribute
);
976
N(SyntaxKind.
Attribute
);
1054
N(SyntaxKind.
Attribute
);
1148
N(SyntaxKind.
Attribute
);
1266
N(SyntaxKind.
Attribute
);
1364
N(SyntaxKind.
Attribute
);
1440
N(SyntaxKind.
Attribute
);
1527
N(SyntaxKind.
Attribute
);
1631
N(SyntaxKind.
Attribute
);
1729
N(SyntaxKind.
Attribute
);
1802
N(SyntaxKind.
Attribute
);
1869
N(SyntaxKind.
Attribute
);
1939
N(SyntaxKind.
Attribute
);
2121
N(SyntaxKind.
Attribute
);
2197
N(SyntaxKind.
Attribute
);
2273
N(SyntaxKind.
Attribute
);
2370
N(SyntaxKind.
Attribute
);
2462
N(SyntaxKind.
Attribute
);
2590
N(SyntaxKind.
Attribute
);
2682
N(SyntaxKind.
Attribute
);
2764
N(SyntaxKind.
Attribute
);
2864
N(SyntaxKind.
Attribute
);
2960
N(SyntaxKind.
Attribute
);
3052
N(SyntaxKind.
Attribute
);
3148
N(SyntaxKind.
Attribute
);
3225
N(SyntaxKind.
Attribute
);
3295
N(SyntaxKind.
Attribute
);
3378
N(SyntaxKind.
Attribute
);
3458
N(SyntaxKind.
Attribute
);
3540
N(SyntaxKind.
Attribute
);
3622
N(SyntaxKind.
Attribute
);
3712
N(SyntaxKind.
Attribute
);
3793
N(SyntaxKind.
Attribute
);
3867
N(SyntaxKind.
Attribute
);
3960
N(SyntaxKind.
Attribute
);
4051
N(SyntaxKind.
Attribute
);
4136
N(SyntaxKind.
Attribute
);
4213
N(SyntaxKind.
Attribute
);
4296
N(SyntaxKind.
Attribute
);
4380
N(SyntaxKind.
Attribute
);
4468
N(SyntaxKind.
Attribute
);
4557
N(SyntaxKind.
Attribute
);
4646
N(SyntaxKind.
Attribute
);
4724
N(SyntaxKind.
Attribute
);
4807
N(SyntaxKind.
Attribute
);
4902
N(SyntaxKind.
Attribute
);
4993
N(SyntaxKind.
Attribute
);
5070
N(SyntaxKind.
Attribute
);
5150
N(SyntaxKind.
Attribute
);
5230
N(SyntaxKind.
Attribute
);
5308
N(SyntaxKind.
Attribute
);
5394
N(SyntaxKind.
Attribute
);
5479
N(SyntaxKind.
Attribute
);
5673
N(SyntaxKind.
Attribute
);
5782
N(SyntaxKind.
Attribute
);
5888
N(SyntaxKind.
Attribute
);
6158
N(SyntaxKind.
Attribute
);
6244
N(SyntaxKind.
Attribute
);
6328
N(SyntaxKind.
Attribute
);
6406
N(SyntaxKind.
Attribute
);
6485
N(SyntaxKind.
Attribute
);
6572
N(SyntaxKind.
Attribute
);
6677
N(SyntaxKind.
Attribute
);
6816
N(SyntaxKind.
Attribute
);
7079
N(SyntaxKind.
Attribute
);
7186
N(SyntaxKind.
Attribute
);
7287
N(SyntaxKind.
Attribute
);
7396
N(SyntaxKind.
Attribute
);
7477
N(SyntaxKind.
Attribute
);
Parsing\TopLevelStatementsParsingTests.cs (5)
196
N(SyntaxKind.
Attribute
);
217
N(SyntaxKind.
Attribute
);
1769
N(SyntaxKind.
Attribute
);
2461
N(SyntaxKind.
Attribute
);
2637
N(SyntaxKind.
Attribute
);
Parsing\UsingDirectiveParsingTests.cs (2)
3683
N(SyntaxKind.
Attribute
);
3845
N(SyntaxKind.
Attribute
);
Microsoft.CodeAnalysis.CSharp.Workspaces (16)
Classification\SyntaxClassification\NameSyntaxClassifier.cs (1)
43
=> node.IsParentKind(SyntaxKind.
Attribute
);
CodeGeneration\CSharpSyntaxGenerator.cs (7)
1121
case SyntaxKind.
Attribute
:
1169
case SyntaxKind.
Attribute
:
1189
case SyntaxKind.
Attribute
:
2045
case SyntaxKind.
Attribute
:
2107
case SyntaxKind.
Attribute
:
2790
case SyntaxKind.
Attribute
:
3013
case SyntaxKind.
Attribute
:
Simplification\Simplifiers\NameSimplifier.cs (1)
496
if (name.Parent.Kind() == SyntaxKind.
Attribute
|| name.IsRightSideOfDotOrColonColon())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
286
case SyntaxKind.
Attribute
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1241
=> node.IsKind(SyntaxKind.
Attribute
) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
152
public int Attribute => (int)SyntaxKind.
Attribute
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (2)
97
node.Kind() is SyntaxKind.
Attribute
or
158
case SyntaxKind.
Attribute
:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
60
token.Parent.IsParentKind(SyntaxKind.
Attribute
))
68
token.Parent.IsParentKind(SyntaxKind.
Attribute
))
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (5)
CodeGeneration\SyntaxGeneratorTests.cs (5)
4411
Assert.Equal(SyntaxKind.
Attribute
, attrY.Kind());
4415
Assert.Equal(SyntaxKind.
Attribute
, attrZ.Kind());
4430
Assert.Equal(SyntaxKind.
Attribute
, attrB.Kind());
4434
Assert.Equal(SyntaxKind.
Attribute
, attrC.Kind());
4438
Assert.Equal(SyntaxKind.
Attribute
, attrD.Kind());
Microsoft.Gen.ComplianceReports (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
88
if (node.IsKind(SyntaxKind.
Attribute
))
Microsoft.Gen.ContextualOptions (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
88
if (node.IsKind(SyntaxKind.
Attribute
))
Microsoft.Gen.Logging (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
88
if (node.IsKind(SyntaxKind.
Attribute
))
Microsoft.Gen.Metrics (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
88
if (node.IsKind(SyntaxKind.
Attribute
))
Microsoft.Gen.MetricsReports (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
88
if (node.IsKind(SyntaxKind.
Attribute
))
Microsoft.VisualStudio.LanguageServices.CSharp (8)
CodeModel\CSharpCodeModelService.cs (6)
207
case SyntaxKind.
Attribute
:
522
case SyntaxKind.
Attribute
:
842
case SyntaxKind.
Attribute
:
913
case SyntaxKind.
Attribute
:
1662
var attribute = (AttributeSyntax)argument.Ancestors().First(n => n.Kind() == SyntaxKind.
Attribute
);
2887
SyntaxKind.
Attribute
=> Delete(document, (AttributeSyntax)node),
CodeModel\CSharpCodeModelService.NodeLocator.cs (2)
39
case SyntaxKind.
Attribute
:
90
case SyntaxKind.
Attribute
: