329 references to AttributeList
Microsoft.CodeAnalysis.CSharp (1)
Parser\LanguageParser.cs (1)
1113
this.CurrentNodeKind == SyntaxKind.
AttributeList
&&
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessarySuppressions\CSharpRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.cs (1)
30
}, SyntaxKind.
AttributeList
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (2)
249
if (previousKind == SyntaxKind.CloseBracketToken && previousToken.Parent.IsKind(SyntaxKind.
AttributeList
))
253
currentToken.Parent.IsKind(SyntaxKind.
AttributeList
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (2)
288
previousToken.Parent.IsKind(SyntaxKind.
AttributeList
) &&
375
currentToken.Parent?.Kind() is not SyntaxKind.CollectionExpression and not SyntaxKind.
AttributeList
&&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
277
case SyntaxKind.
AttributeList
:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (13)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (4)
328
token.Parent.IsKind(SyntaxKind.
AttributeList
) &&
368
token.Parent.IsKind(SyntaxKind.
AttributeList
))
392
token.Parent.IsKind(SyntaxKind.
AttributeList
) &&
408
token.Parent.IsKind(SyntaxKind.
AttributeList
) &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (4)
177
if (token.Parent.IsKind(SyntaxKind.
AttributeList
))
259
if (token.Parent.IsKind(SyntaxKind.
AttributeList
))
605
targetToken.Parent.IsKind(SyntaxKind.
AttributeList
) &&
650
targetToken.Parent.IsKind(SyntaxKind.
AttributeList
) &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (5)
36
token.Parent.IsKind(SyntaxKind.
AttributeList
))
44
token.Parent.IsKind(SyntaxKind.
AttributeList
))
220
token.Parent.IsKind(SyntaxKind.
AttributeList
))
507
token.Parent.IsKind(SyntaxKind.
AttributeList
))
1097
token.Parent.IsKind(SyntaxKind.
AttributeList
) &&
Microsoft.CodeAnalysis.CSharp.Features (9)
Completion\KeywordRecommenders\AssemblyKeywordRecommender.cs (1)
24
token.GetRequiredParent().Kind() == SyntaxKind.
AttributeList
)
Completion\KeywordRecommenders\NamespaceKeywordRecommender.cs (1)
155
token.Parent.IsKind(SyntaxKind.
AttributeList
) &&
Completion\KeywordRecommenders\ParamKeywordRecommender.cs (1)
29
token.Parent.IsKind(SyntaxKind.
AttributeList
))
Completion\KeywordRecommenders\TypeVarKeywordRecommender.cs (1)
24
token.Parent.IsKind(SyntaxKind.
AttributeList
))
EditAndContinue\SyntaxComparer.cs (3)
666
case SyntaxKind.
AttributeList
:
912
case SyntaxKind.
AttributeList
:
1495
case SyntaxKind.
AttributeList
:
src\Analyzers\CSharp\Analyzers\RemoveUnnecessarySuppressions\CSharpRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.cs (1)
30
}, SyntaxKind.
AttributeList
);
Structure\CSharpStructureHelpers.cs (1)
377
if (child.Kind() != SyntaxKind.
AttributeList
)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (267)
IncrementalParsing\IncrementalParsingTests.cs (1)
795
N(SyntaxKind.
AttributeList
);
Parsing\AnonymousFunctionParsingTests.cs (2)
2303
N(SyntaxKind.
AttributeList
);
2383
N(SyntaxKind.
AttributeList
);
Parsing\CollectionExpressionParsingTests.cs (61)
325
N(SyntaxKind.
AttributeList
);
452
N(SyntaxKind.
AttributeList
);
585
N(SyntaxKind.
AttributeList
);
12007
N(SyntaxKind.
AttributeList
);
12079
N(SyntaxKind.
AttributeList
);
12425
N(SyntaxKind.
AttributeList
);
12492
N(SyntaxKind.
AttributeList
);
12559
N(SyntaxKind.
AttributeList
);
12642
N(SyntaxKind.
AttributeList
);
12739
N(SyntaxKind.
AttributeList
);
12797
N(SyntaxKind.
AttributeList
);
12814
N(SyntaxKind.
AttributeList
);
12877
N(SyntaxKind.
AttributeList
);
13074
N(SyntaxKind.
AttributeList
);
13086
N(SyntaxKind.
AttributeList
);
13223
N(SyntaxKind.
AttributeList
);
13235
N(SyntaxKind.
AttributeList
);
13388
N(SyntaxKind.
AttributeList
);
13400
N(SyntaxKind.
AttributeList
);
13441
N(SyntaxKind.
AttributeList
);
13566
N(SyntaxKind.
AttributeList
);
13578
N(SyntaxKind.
AttributeList
);
13760
N(SyntaxKind.
AttributeList
);
13772
N(SyntaxKind.
AttributeList
);
15588
N(SyntaxKind.
AttributeList
);
15655
N(SyntaxKind.
AttributeList
);
15742
N(SyntaxKind.
AttributeList
);
15754
N(SyntaxKind.
AttributeList
);
15821
N(SyntaxKind.
AttributeList
);
15833
N(SyntaxKind.
AttributeList
);
15920
N(SyntaxKind.
AttributeList
);
15932
N(SyntaxKind.
AttributeList
);
16003
N(SyntaxKind.
AttributeList
);
16015
N(SyntaxKind.
AttributeList
);
16106
N(SyntaxKind.
AttributeList
);
16118
N(SyntaxKind.
AttributeList
);
16197
N(SyntaxKind.
AttributeList
);
16209
N(SyntaxKind.
AttributeList
);
16308
N(SyntaxKind.
AttributeList
);
16320
N(SyntaxKind.
AttributeList
);
16404
N(SyntaxKind.
AttributeList
);
16416
N(SyntaxKind.
AttributeList
);
16520
N(SyntaxKind.
AttributeList
);
16532
N(SyntaxKind.
AttributeList
);
16603
N(SyntaxKind.
AttributeList
);
16615
N(SyntaxKind.
AttributeList
);
16706
N(SyntaxKind.
AttributeList
);
16718
N(SyntaxKind.
AttributeList
);
16787
N(SyntaxKind.
AttributeList
);
16799
N(SyntaxKind.
AttributeList
);
16994
N(SyntaxKind.
AttributeList
);
17191
N(SyntaxKind.
AttributeList
);
17268
N(SyntaxKind.
AttributeList
);
17424
N(SyntaxKind.
AttributeList
);
17509
N(SyntaxKind.
AttributeList
);
17673
N(SyntaxKind.
AttributeList
);
17755
N(SyntaxKind.
AttributeList
);
17916
N(SyntaxKind.
AttributeList
);
18006
N(SyntaxKind.
AttributeList
);
18542
N(SyntaxKind.
AttributeList
);
18568
N(SyntaxKind.
AttributeList
);
Parsing\DeclarationParsingTests.cs (12)
265
Assert.Equal(SyntaxKind.
AttributeList
, file.AttributeLists[0].Kind());
291
Assert.Equal(SyntaxKind.
AttributeList
, file.AttributeLists[0].Kind());
320
Assert.Equal(SyntaxKind.
AttributeList
, file.AttributeLists[0].Kind());
349
Assert.Equal(SyntaxKind.
AttributeList
, file.AttributeLists[0].Kind());
376
Assert.Equal(SyntaxKind.
AttributeList
, file.AttributeLists[0].Kind());
404
Assert.Equal(SyntaxKind.
AttributeList
, file.AttributeLists[0].Kind());
434
Assert.Equal(SyntaxKind.
AttributeList
, file.AttributeLists[0].Kind());
465
Assert.Equal(SyntaxKind.
AttributeList
, file.AttributeLists[0].Kind());
501
Assert.Equal(SyntaxKind.
AttributeList
, file.AttributeLists[0].Kind());
533
Assert.Equal(SyntaxKind.
AttributeList
, file.AttributeLists[0].Kind());
7598
N(SyntaxKind.
AttributeList
);
7660
N(SyntaxKind.
AttributeList
);
Parsing\DeclarationScopeParsingTests.cs (4)
1207
N(SyntaxKind.
AttributeList
);
1229
N(SyntaxKind.
AttributeList
);
11528
N(SyntaxKind.
AttributeList
);
11554
N(SyntaxKind.
AttributeList
);
Parsing\ExpressionParsingTests.cs (1)
6282
N(SyntaxKind.
AttributeList
);
Parsing\LambdaAttributeParsingTests.cs (65)
46
N(SyntaxKind.
AttributeList
);
86
N(SyntaxKind.
AttributeList
);
136
N(SyntaxKind.
AttributeList
);
148
N(SyntaxKind.
AttributeList
);
202
N(SyntaxKind.
AttributeList
);
243
N(SyntaxKind.
AttributeList
);
331
N(SyntaxKind.
AttributeList
);
364
N(SyntaxKind.
AttributeList
);
399
N(SyntaxKind.
AttributeList
);
438
N(SyntaxKind.
AttributeList
);
481
N(SyntaxKind.
AttributeList
);
524
N(SyntaxKind.
AttributeList
);
563
N(SyntaxKind.
AttributeList
);
575
N(SyntaxKind.
AttributeList
);
606
N(SyntaxKind.
AttributeList
);
649
N(SyntaxKind.
AttributeList
);
689
N(SyntaxKind.
AttributeList
);
727
N(SyntaxKind.
AttributeList
);
767
N(SyntaxKind.
AttributeList
);
810
N(SyntaxKind.
AttributeList
);
853
N(SyntaxKind.
AttributeList
);
1016
N(SyntaxKind.
AttributeList
);
1121
N(SyntaxKind.
AttributeList
);
1160
N(SyntaxKind.
AttributeList
);
1314
N(SyntaxKind.
AttributeList
);
1398
N(SyntaxKind.
AttributeList
);
1438
N(SyntaxKind.
AttributeList
);
1486
N(SyntaxKind.
AttributeList
);
1573
N(SyntaxKind.
AttributeList
);
1619
N(SyntaxKind.
AttributeList
);
1666
N(SyntaxKind.
AttributeList
);
1722
N(SyntaxKind.
AttributeList
);
1757
N(SyntaxKind.
AttributeList
);
1798
N(SyntaxKind.
AttributeList
);
1856
N(SyntaxKind.
AttributeList
);
1904
N(SyntaxKind.
AttributeList
);
2283
N(SyntaxKind.
AttributeList
);
2345
N(SyntaxKind.
AttributeList
);
2407
N(SyntaxKind.
AttributeList
);
2477
N(SyntaxKind.
AttributeList
);
2661
N(SyntaxKind.
AttributeList
);
2820
N(SyntaxKind.
AttributeList
);
2853
N(SyntaxKind.
AttributeList
);
2899
N(SyntaxKind.
AttributeList
);
2927
N(SyntaxKind.
AttributeList
);
3029
N(SyntaxKind.
AttributeList
);
3054
N(SyntaxKind.
AttributeList
);
3100
N(SyntaxKind.
AttributeList
);
3125
N(SyntaxKind.
AttributeList
);
3173
N(SyntaxKind.
AttributeList
);
3198
N(SyntaxKind.
AttributeList
);
3238
N(SyntaxKind.
AttributeList
);
3284
N(SyntaxKind.
AttributeList
);
3332
N(SyntaxKind.
AttributeList
);
3400
N(SyntaxKind.
AttributeList
);
3439
N(SyntaxKind.
AttributeList
);
3476
N(SyntaxKind.
AttributeList
);
3523
N(SyntaxKind.
AttributeList
);
3725
N(SyntaxKind.
AttributeList
);
3847
N(SyntaxKind.
AttributeList
);
3976
N(SyntaxKind.
AttributeList
);
4073
N(SyntaxKind.
AttributeList
);
4190
N(SyntaxKind.
AttributeList
);
4227
N(SyntaxKind.
AttributeList
);
4362
N(SyntaxKind.
AttributeList
);
Parsing\LambdaParameterParsingTests.cs (3)
3404
N(SyntaxKind.
AttributeList
);
3485
N(SyntaxKind.
AttributeList
);
5771
N(SyntaxKind.
AttributeList
);
Parsing\LambdaReturnTypeParsingTests.cs (10)
1804
N(SyntaxKind.
AttributeList
);
1849
N(SyntaxKind.
AttributeList
);
5477
N(SyntaxKind.
AttributeList
);
5520
N(SyntaxKind.
AttributeList
);
5532
N(SyntaxKind.
AttributeList
);
5571
N(SyntaxKind.
AttributeList
);
5626
N(SyntaxKind.
AttributeList
);
5684
N(SyntaxKind.
AttributeList
);
5737
N(SyntaxKind.
AttributeList
);
5803
N(SyntaxKind.
AttributeList
);
Parsing\LocalFunctionParsingTests.cs (8)
398
N(SyntaxKind.
AttributeList
);
428
N(SyntaxKind.
AttributeList
);
463
N(SyntaxKind.
AttributeList
);
497
N(SyntaxKind.
AttributeList
);
509
N(SyntaxKind.
AttributeList
);
942
N(SyntaxKind.
AttributeList
);
1022
N(SyntaxKind.
AttributeList
);
1116
N(SyntaxKind.
AttributeList
);
Parsing\ParserErrorMessageTests.cs (1)
5716
N(SyntaxKind.
AttributeList
);
Parsing\ScriptParsingTests.cs (11)
2290
N(SyntaxKind.
AttributeList
);
2307
N(SyntaxKind.
AttributeList
);
2326
N(SyntaxKind.
AttributeList
);
2356
N(SyntaxKind.
AttributeList
);
2383
N(SyntaxKind.
AttributeList
);
2402
N(SyntaxKind.
AttributeList
);
2421
N(SyntaxKind.
AttributeList
);
2440
N(SyntaxKind.
AttributeList
);
3544
N(SyntaxKind.
AttributeList
);
3602
N(SyntaxKind.
AttributeList
);
3970
N(SyntaxKind.
AttributeList
);
Parsing\SingleLineDeclarationParsingTests.cs (1)
797
N(SyntaxKind.
AttributeList
);
Parsing\StatementAttributeParsingTests.cs (80)
55
N(SyntaxKind.
AttributeList
);
121
N(SyntaxKind.
AttributeList
);
188
N(SyntaxKind.
AttributeList
);
276
N(SyntaxKind.
AttributeList
);
383
N(SyntaxKind.
AttributeList
);
468
N(SyntaxKind.
AttributeList
);
537
N(SyntaxKind.
AttributeList
);
603
N(SyntaxKind.
AttributeList
);
672
N(SyntaxKind.
AttributeList
);
746
N(SyntaxKind.
AttributeList
);
823
N(SyntaxKind.
AttributeList
);
898
N(SyntaxKind.
AttributeList
);
973
N(SyntaxKind.
AttributeList
);
1051
N(SyntaxKind.
AttributeList
);
1145
N(SyntaxKind.
AttributeList
);
1263
N(SyntaxKind.
AttributeList
);
1361
N(SyntaxKind.
AttributeList
);
1437
N(SyntaxKind.
AttributeList
);
1524
N(SyntaxKind.
AttributeList
);
1628
N(SyntaxKind.
AttributeList
);
1726
N(SyntaxKind.
AttributeList
);
1799
N(SyntaxKind.
AttributeList
);
1866
N(SyntaxKind.
AttributeList
);
1936
N(SyntaxKind.
AttributeList
);
2118
N(SyntaxKind.
AttributeList
);
2194
N(SyntaxKind.
AttributeList
);
2270
N(SyntaxKind.
AttributeList
);
2367
N(SyntaxKind.
AttributeList
);
2459
N(SyntaxKind.
AttributeList
);
2587
N(SyntaxKind.
AttributeList
);
2679
N(SyntaxKind.
AttributeList
);
2761
N(SyntaxKind.
AttributeList
);
2861
N(SyntaxKind.
AttributeList
);
2957
N(SyntaxKind.
AttributeList
);
3049
N(SyntaxKind.
AttributeList
);
3145
N(SyntaxKind.
AttributeList
);
3222
N(SyntaxKind.
AttributeList
);
3292
N(SyntaxKind.
AttributeList
);
3375
N(SyntaxKind.
AttributeList
);
3455
N(SyntaxKind.
AttributeList
);
3537
N(SyntaxKind.
AttributeList
);
3619
N(SyntaxKind.
AttributeList
);
3709
N(SyntaxKind.
AttributeList
);
3790
N(SyntaxKind.
AttributeList
);
3864
N(SyntaxKind.
AttributeList
);
3957
N(SyntaxKind.
AttributeList
);
4048
N(SyntaxKind.
AttributeList
);
4133
N(SyntaxKind.
AttributeList
);
4210
N(SyntaxKind.
AttributeList
);
4293
N(SyntaxKind.
AttributeList
);
4377
N(SyntaxKind.
AttributeList
);
4465
N(SyntaxKind.
AttributeList
);
4554
N(SyntaxKind.
AttributeList
);
4643
N(SyntaxKind.
AttributeList
);
4721
N(SyntaxKind.
AttributeList
);
4804
N(SyntaxKind.
AttributeList
);
4899
N(SyntaxKind.
AttributeList
);
4990
N(SyntaxKind.
AttributeList
);
5067
N(SyntaxKind.
AttributeList
);
5147
N(SyntaxKind.
AttributeList
);
5227
N(SyntaxKind.
AttributeList
);
5305
N(SyntaxKind.
AttributeList
);
5391
N(SyntaxKind.
AttributeList
);
5476
N(SyntaxKind.
AttributeList
);
5670
N(SyntaxKind.
AttributeList
);
5779
N(SyntaxKind.
AttributeList
);
5885
N(SyntaxKind.
AttributeList
);
6155
N(SyntaxKind.
AttributeList
);
6241
N(SyntaxKind.
AttributeList
);
6325
N(SyntaxKind.
AttributeList
);
6403
N(SyntaxKind.
AttributeList
);
6482
N(SyntaxKind.
AttributeList
);
6569
N(SyntaxKind.
AttributeList
);
6674
N(SyntaxKind.
AttributeList
);
6813
N(SyntaxKind.
AttributeList
);
7076
N(SyntaxKind.
AttributeList
);
7183
N(SyntaxKind.
AttributeList
);
7284
N(SyntaxKind.
AttributeList
);
7393
N(SyntaxKind.
AttributeList
);
7474
N(SyntaxKind.
AttributeList
);
Parsing\TopLevelStatementsParsingTests.cs (5)
193
N(SyntaxKind.
AttributeList
);
214
N(SyntaxKind.
AttributeList
);
1766
N(SyntaxKind.
AttributeList
);
2458
N(SyntaxKind.
AttributeList
);
2634
N(SyntaxKind.
AttributeList
);
Parsing\UsingDirectiveParsingTests.cs (2)
3680
N(SyntaxKind.
AttributeList
);
3842
N(SyntaxKind.
AttributeList
);
Microsoft.CodeAnalysis.CSharp.Workspaces (25)
CodeGeneration\CSharpSyntaxGenerator.cs (7)
1113
case SyntaxKind.
AttributeList
:
1161
case SyntaxKind.
AttributeList
:
1181
case SyntaxKind.
AttributeList
:
1290
case SyntaxKind.
AttributeList
:
1331
SyntaxKind.
AttributeList
=> ((AttributeListSyntax)declaration).Attributes.Count,
2833
case SyntaxKind.
AttributeList
:
2979
SyntaxKind.
AttributeList
=> ((AttributeListSyntax)declaration).Attributes,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (2)
249
if (previousKind == SyntaxKind.CloseBracketToken && previousToken.Parent.IsKind(SyntaxKind.
AttributeList
))
253
currentToken.Parent.IsKind(SyntaxKind.
AttributeList
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (2)
288
previousToken.Parent.IsKind(SyntaxKind.
AttributeList
) &&
375
currentToken.Parent?.Kind() is not SyntaxKind.CollectionExpression and not SyntaxKind.
AttributeList
&&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
277
case SyntaxKind.
AttributeList
:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (4)
328
token.Parent.IsKind(SyntaxKind.
AttributeList
) &&
368
token.Parent.IsKind(SyntaxKind.
AttributeList
))
392
token.Parent.IsKind(SyntaxKind.
AttributeList
) &&
408
token.Parent.IsKind(SyntaxKind.
AttributeList
) &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (4)
177
if (token.Parent.IsKind(SyntaxKind.
AttributeList
))
259
if (token.Parent.IsKind(SyntaxKind.
AttributeList
))
605
targetToken.Parent.IsKind(SyntaxKind.
AttributeList
) &&
650
targetToken.Parent.IsKind(SyntaxKind.
AttributeList
) &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (5)
36
token.Parent.IsKind(SyntaxKind.
AttributeList
))
44
token.Parent.IsKind(SyntaxKind.
AttributeList
))
220
token.Parent.IsKind(SyntaxKind.
AttributeList
))
507
token.Parent.IsKind(SyntaxKind.
AttributeList
))
1097
token.Parent.IsKind(SyntaxKind.
AttributeList
) &&
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (7)
CodeGeneration\SyntaxGeneratorTests.cs (7)
4144
Assert.Equal(SyntaxKind.
AttributeList
, xNamedQ.Kind());
4149
Assert.Equal(SyntaxKind.
AttributeList
, xWithArg.Kind());
4324
Assert.Equal(SyntaxKind.
AttributeList
, xNamedQ.Kind());
4329
Assert.Equal(SyntaxKind.
AttributeList
, xWithArg.Kind());
4407
Assert.Equal(SyntaxKind.
AttributeList
, attrX.Kind());
4419
Assert.Equal(SyntaxKind.
AttributeList
, attrP.Kind());
4426
Assert.Equal(SyntaxKind.
AttributeList
, attrA.Kind());
Microsoft.Extensions.Logging.Generators (1)
src\libraries\Common\src\Roslyn\SyntaxValueProvider_ForAttributeWithSimpleName.cs (1)
438
if (node.IsKind(SyntaxKind.
AttributeList
))