275 references to CollectionExpression
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
789
case SyntaxKind.
CollectionExpression
:
Parser\LanguageParser.cs (1)
10819
case SyntaxKind.
CollectionExpression
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (8)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
115
if (expression.IsKind(SyntaxKind.
CollectionExpression
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
543
=> token.Kind() == SyntaxKind.CommaToken && token.Parent.IsKind(SyntaxKind.
CollectionExpression
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (1)
260
if (node.Parent != null && node.Kind() is SyntaxKind.ListPattern or SyntaxKind.
CollectionExpression
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (2)
208
if (currentKind == SyntaxKind.OpenBracketToken && currentToken.Parent.Kind() is SyntaxKind.ListPattern or SyntaxKind.
CollectionExpression
)
606
=> token.Parent is (kind: SyntaxKind.ArrayRankSpecifier or SyntaxKind.BracketedArgumentList or SyntaxKind.BracketedParameterList or SyntaxKind.ImplicitArrayCreationExpression or SyntaxKind.ListPattern or SyntaxKind.
CollectionExpression
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (1)
375
currentToken.Parent?.Kind() is not SyntaxKind.
CollectionExpression
and not SyntaxKind.AttributeList &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
527
&& token.Parent.IsKind(SyntaxKind.
CollectionExpression
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
793
if (newExpression.IsKind(SyntaxKind.
CollectionExpression
) &&
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2708
token.Parent.IsKind(SyntaxKind.
CollectionExpression
))
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
CompleteStatement\CompleteStatementCommandHandler.cs (1)
205
SyntaxKind.
CollectionExpression
or
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (1)
50
SyntaxKind.
CollectionExpression
,
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Diagnostics\DiagnosticAnalyzerTests.AllInOne.cs (1)
36
missingSyntaxKinds.Add(SyntaxKind.
CollectionExpression
);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (251)
Parsing\CollectionExpressionParsingTests.cs (229)
24
N(SyntaxKind.
CollectionExpression
);
69
N(SyntaxKind.
CollectionExpression
);
125
N(SyntaxKind.
CollectionExpression
);
186
N(SyntaxKind.
CollectionExpression
);
266
N(SyntaxKind.
CollectionExpression
);
393
N(SyntaxKind.
CollectionExpression
);
531
N(SyntaxKind.
CollectionExpression
);
645
N(SyntaxKind.
CollectionExpression
);
713
N(SyntaxKind.
CollectionExpression
);
773
N(SyntaxKind.
CollectionExpression
);
841
N(SyntaxKind.
CollectionExpression
);
897
N(SyntaxKind.
CollectionExpression
);
954
N(SyntaxKind.
CollectionExpression
);
1017
N(SyntaxKind.
CollectionExpression
);
1130
N(SyntaxKind.
CollectionExpression
);
1201
N(SyntaxKind.
CollectionExpression
);
1257
N(SyntaxKind.
CollectionExpression
);
1324
N(SyntaxKind.
CollectionExpression
);
1415
N(SyntaxKind.
CollectionExpression
);
1491
N(SyntaxKind.
CollectionExpression
);
1512
N(SyntaxKind.
CollectionExpression
);
1560
N(SyntaxKind.
CollectionExpression
);
1592
N(SyntaxKind.
CollectionExpression
);
1597
N(SyntaxKind.
CollectionExpression
);
1638
N(SyntaxKind.
CollectionExpression
);
1643
N(SyntaxKind.
CollectionExpression
);
1652
N(SyntaxKind.
CollectionExpression
);
1691
N(SyntaxKind.
CollectionExpression
);
1734
N(SyntaxKind.
CollectionExpression
);
1777
N(SyntaxKind.
CollectionExpression
);
1815
N(SyntaxKind.
CollectionExpression
);
1871
N(SyntaxKind.
CollectionExpression
);
1918
N(SyntaxKind.
CollectionExpression
);
1965
N(SyntaxKind.
CollectionExpression
);
2025
N(SyntaxKind.
CollectionExpression
);
2067
N(SyntaxKind.
CollectionExpression
);
2109
N(SyntaxKind.
CollectionExpression
);
2159
N(SyntaxKind.
CollectionExpression
);
2213
N(SyntaxKind.
CollectionExpression
);
2267
N(SyntaxKind.
CollectionExpression
);
2335
N(SyntaxKind.
CollectionExpression
);
2347
N(SyntaxKind.
CollectionExpression
);
2378
N(SyntaxKind.
CollectionExpression
);
2391
N(SyntaxKind.
CollectionExpression
);
2419
N(SyntaxKind.
CollectionExpression
);
2470
N(SyntaxKind.
CollectionExpression
);
2529
N(SyntaxKind.
CollectionExpression
);
2566
N(SyntaxKind.
CollectionExpression
);
2722
N(SyntaxKind.
CollectionExpression
);
2772
N(SyntaxKind.
CollectionExpression
);
2929
N(SyntaxKind.
CollectionExpression
);
2979
N(SyntaxKind.
CollectionExpression
);
3081
N(SyntaxKind.
CollectionExpression
);
3174
N(SyntaxKind.
CollectionExpression
);
3255
N(SyntaxKind.
CollectionExpression
);
3605
N(SyntaxKind.
CollectionExpression
);
3658
N(SyntaxKind.
CollectionExpression
);
3692
N(SyntaxKind.
CollectionExpression
);
3754
N(SyntaxKind.
CollectionExpression
);
3788
N(SyntaxKind.
CollectionExpression
);
3899
N(SyntaxKind.
CollectionExpression
);
3961
N(SyntaxKind.
CollectionExpression
);
4023
N(SyntaxKind.
CollectionExpression
);
4193
N(SyntaxKind.
CollectionExpression
);
4250
N(SyntaxKind.
CollectionExpression
);
4323
N(SyntaxKind.
CollectionExpression
);
4432
N(SyntaxKind.
CollectionExpression
);
4546
N(SyntaxKind.
CollectionExpression
);
4607
N(SyntaxKind.
CollectionExpression
);
4656
N(SyntaxKind.
CollectionExpression
);
4711
N(SyntaxKind.
CollectionExpression
);
5085
N(SyntaxKind.
CollectionExpression
);
5155
N(SyntaxKind.
CollectionExpression
);
5212
N(SyntaxKind.
CollectionExpression
);
5241
N(SyntaxKind.
CollectionExpression
);
5401
N(SyntaxKind.
CollectionExpression
);
5439
N(SyntaxKind.
CollectionExpression
);
5535
N(SyntaxKind.
CollectionExpression
);
5571
N(SyntaxKind.
CollectionExpression
);
5611
N(SyntaxKind.
CollectionExpression
);
5616
N(SyntaxKind.
CollectionExpression
);
5671
N(SyntaxKind.
CollectionExpression
);
5732
N(SyntaxKind.
CollectionExpression
);
5761
N(SyntaxKind.
CollectionExpression
);
5804
N(SyntaxKind.
CollectionExpression
);
5843
N(SyntaxKind.
CollectionExpression
);
5878
N(SyntaxKind.
CollectionExpression
);
5899
N(SyntaxKind.
CollectionExpression
);
5931
N(SyntaxKind.
CollectionExpression
);
5974
N(SyntaxKind.
CollectionExpression
);
6022
N(SyntaxKind.
CollectionExpression
);
6045
N(SyntaxKind.
CollectionExpression
);
6058
N(SyntaxKind.
CollectionExpression
);
6079
N(SyntaxKind.
CollectionExpression
);
6110
N(SyntaxKind.
CollectionExpression
);
6135
N(SyntaxKind.
CollectionExpression
);
6158
N(SyntaxKind.
CollectionExpression
);
6216
N(SyntaxKind.
CollectionExpression
);
6277
N(SyntaxKind.
CollectionExpression
);
6374
N(SyntaxKind.
CollectionExpression
);
6395
N(SyntaxKind.
CollectionExpression
);
6416
N(SyntaxKind.
CollectionExpression
);
6441
N(SyntaxKind.
CollectionExpression
);
6466
N(SyntaxKind.
CollectionExpression
);
6495
N(SyntaxKind.
CollectionExpression
);
6520
N(SyntaxKind.
CollectionExpression
);
6549
N(SyntaxKind.
CollectionExpression
);
6578
N(SyntaxKind.
CollectionExpression
);
6607
N(SyntaxKind.
CollectionExpression
);
6641
N(SyntaxKind.
CollectionExpression
);
6883
N(SyntaxKind.
CollectionExpression
);
6907
N(SyntaxKind.
CollectionExpression
);
6941
N(SyntaxKind.
CollectionExpression
);
6973
N(SyntaxKind.
CollectionExpression
);
6997
N(SyntaxKind.
CollectionExpression
);
7021
N(SyntaxKind.
CollectionExpression
);
7309
N(SyntaxKind.
CollectionExpression
);
7340
N(SyntaxKind.
CollectionExpression
);
7381
N(SyntaxKind.
CollectionExpression
);
7401
N(SyntaxKind.
CollectionExpression
);
7425
N(SyntaxKind.
CollectionExpression
);
7459
N(SyntaxKind.
CollectionExpression
);
7510
N(SyntaxKind.
CollectionExpression
);
7542
N(SyntaxKind.
CollectionExpression
);
7559
N(SyntaxKind.
CollectionExpression
);
7583
N(SyntaxKind.
CollectionExpression
);
7617
N(SyntaxKind.
CollectionExpression
);
7668
N(SyntaxKind.
CollectionExpression
);
7778
N(SyntaxKind.
CollectionExpression
);
7808
N(SyntaxKind.
CollectionExpression
);
7854
N(SyntaxKind.
CollectionExpression
);
7910
N(SyntaxKind.
CollectionExpression
);
8043
N(SyntaxKind.
CollectionExpression
);
8188
N(SyntaxKind.
CollectionExpression
);
8341
N(SyntaxKind.
CollectionExpression
);
8497
N(SyntaxKind.
CollectionExpression
);
8641
N(SyntaxKind.
CollectionExpression
);
8796
N(SyntaxKind.
CollectionExpression
);
8888
N(SyntaxKind.
CollectionExpression
);
8966
N(SyntaxKind.
CollectionExpression
);
9042
N(SyntaxKind.
CollectionExpression
);
9124
N(SyntaxKind.
CollectionExpression
);
9183
N(SyntaxKind.
CollectionExpression
);
9232
N(SyntaxKind.
CollectionExpression
);
9279
N(SyntaxKind.
CollectionExpression
);
9332
N(SyntaxKind.
CollectionExpression
);
9415
N(SyntaxKind.
CollectionExpression
);
9484
N(SyntaxKind.
CollectionExpression
);
9574
N(SyntaxKind.
CollectionExpression
);
9643
N(SyntaxKind.
CollectionExpression
);
9733
N(SyntaxKind.
CollectionExpression
);
9802
N(SyntaxKind.
CollectionExpression
);
9892
N(SyntaxKind.
CollectionExpression
);
9961
N(SyntaxKind.
CollectionExpression
);
10048
N(SyntaxKind.
CollectionExpression
);
10094
N(SyntaxKind.
CollectionExpression
);
10159
N(SyntaxKind.
CollectionExpression
);
10209
N(SyntaxKind.
CollectionExpression
);
10284
N(SyntaxKind.
CollectionExpression
);
10345
N(SyntaxKind.
CollectionExpression
);
10427
N(SyntaxKind.
CollectionExpression
);
10477
N(SyntaxKind.
CollectionExpression
);
10548
N(SyntaxKind.
CollectionExpression
);
10605
N(SyntaxKind.
CollectionExpression
);
10689
N(SyntaxKind.
CollectionExpression
);
10760
N(SyntaxKind.
CollectionExpression
);
10846
N(SyntaxKind.
CollectionExpression
);
10911
N(SyntaxKind.
CollectionExpression
);
10999
N(SyntaxKind.
CollectionExpression
);
11079
N(SyntaxKind.
CollectionExpression
);
11180
N(SyntaxKind.
CollectionExpression
);
11245
N(SyntaxKind.
CollectionExpression
);
11335
N(SyntaxKind.
CollectionExpression
);
11425
N(SyntaxKind.
CollectionExpression
);
11530
N(SyntaxKind.
CollectionExpression
);
11603
N(SyntaxKind.
CollectionExpression
);
11695
N(SyntaxKind.
CollectionExpression
);
11700
N(SyntaxKind.
CollectionExpression
);
11756
N(SyntaxKind.
CollectionExpression
);
11761
N(SyntaxKind.
CollectionExpression
);
11838
N(SyntaxKind.
CollectionExpression
);
11854
N(SyntaxKind.
CollectionExpression
);
11914
N(SyntaxKind.
CollectionExpression
);
11930
N(SyntaxKind.
CollectionExpression
);
12021
N(SyntaxKind.
CollectionExpression
);
12093
N(SyntaxKind.
CollectionExpression
);
12169
N(SyntaxKind.
CollectionExpression
);
12203
N(SyntaxKind.
CollectionExpression
);
12258
N(SyntaxKind.
CollectionExpression
);
12292
N(SyntaxKind.
CollectionExpression
);
12349
N(SyntaxKind.
CollectionExpression
);
12393
N(SyntaxKind.
CollectionExpression
);
12439
N(SyntaxKind.
CollectionExpression
);
12506
N(SyntaxKind.
CollectionExpression
);
12573
N(SyntaxKind.
CollectionExpression
);
12656
N(SyntaxKind.
CollectionExpression
);
12753
N(SyntaxKind.
CollectionExpression
);
12828
N(SyntaxKind.
CollectionExpression
);
12928
N(SyntaxKind.
CollectionExpression
);
13007
N(SyntaxKind.
CollectionExpression
);
13151
N(SyntaxKind.
CollectionExpression
);
13305
N(SyntaxKind.
CollectionExpression
);
13486
N(SyntaxKind.
CollectionExpression
);
13536
N(SyntaxKind.
CollectionExpression
);
13672
N(SyntaxKind.
CollectionExpression
);
13881
N(SyntaxKind.
CollectionExpression
);
14018
N(SyntaxKind.
CollectionExpression
);
14104
N(SyntaxKind.
CollectionExpression
);
14210
N(SyntaxKind.
CollectionExpression
);
14303
N(SyntaxKind.
CollectionExpression
);
14418
N(SyntaxKind.
CollectionExpression
);
14526
N(SyntaxKind.
CollectionExpression
);
14654
N(SyntaxKind.
CollectionExpression
);
14762
N(SyntaxKind.
CollectionExpression
);
14892
N(SyntaxKind.
CollectionExpression
);
15001
N(SyntaxKind.
CollectionExpression
);
15128
N(SyntaxKind.
CollectionExpression
);
15225
N(SyntaxKind.
CollectionExpression
);
15344
N(SyntaxKind.
CollectionExpression
);
15460
N(SyntaxKind.
CollectionExpression
);
16883
N(SyntaxKind.
CollectionExpression
);
17068
N(SyntaxKind.
CollectionExpression
);
17100
N(SyntaxKind.
CollectionExpression
);
18139
N(SyntaxKind.
CollectionExpression
);
18168
N(SyntaxKind.
CollectionExpression
);
18223
N(SyntaxKind.
CollectionExpression
);
18229
N(SyntaxKind.
CollectionExpression
);
18465
N(SyntaxKind.
CollectionExpression
);
18485
N(SyntaxKind.
CollectionExpression
);
Parsing\ExpressionParsingTests.cs (3)
6097
N(SyntaxKind.
CollectionExpression
);
6412
N(SyntaxKind.
CollectionExpression
);
6439
N(SyntaxKind.
CollectionExpression
);
Parsing\LambdaAttributeParsingTests.cs (13)
287
N(SyntaxKind.
CollectionExpression
);
311
N(SyntaxKind.
CollectionExpression
);
1202
N(SyntaxKind.
CollectionExpression
);
1237
N(SyntaxKind.
CollectionExpression
);
1364
N(SyntaxKind.
CollectionExpression
);
1961
N(SyntaxKind.
CollectionExpression
);
2229
N(SyntaxKind.
CollectionExpression
);
3579
N(SyntaxKind.
CollectionExpression
);
3612
N(SyntaxKind.
CollectionExpression
);
3654
N(SyntaxKind.
CollectionExpression
);
3829
N(SyntaxKind.
CollectionExpression
);
3958
N(SyntaxKind.
CollectionExpression
);
4494
N(SyntaxKind.
CollectionExpression
);
Parsing\LambdaParameterParsingTests.cs (1)
5326
N(SyntaxKind.
CollectionExpression
);
Parsing\LocalFunctionParsingTests.cs (1)
2728
N(SyntaxKind.
CollectionExpression
);
Parsing\StatementAttributeParsingTests.cs (3)
5563
N(SyntaxKind.
CollectionExpression
);
5986
N(SyntaxKind.
CollectionExpression
);
6082
N(SyntaxKind.
CollectionExpression
);
Parsing\SuppressNullableWarningExpressionParsingTests.cs (1)
478
N(SyntaxKind.
CollectionExpression
);
Microsoft.CodeAnalysis.CSharp.Workspaces (9)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
115
if (expression.IsKind(SyntaxKind.
CollectionExpression
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
543
=> token.Kind() == SyntaxKind.CommaToken && token.Parent.IsKind(SyntaxKind.
CollectionExpression
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (1)
260
if (node.Parent != null && node.Kind() is SyntaxKind.ListPattern or SyntaxKind.
CollectionExpression
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (2)
208
if (currentKind == SyntaxKind.OpenBracketToken && currentToken.Parent.Kind() is SyntaxKind.ListPattern or SyntaxKind.
CollectionExpression
)
606
=> token.Parent is (kind: SyntaxKind.ArrayRankSpecifier or SyntaxKind.BracketedArgumentList or SyntaxKind.BracketedParameterList or SyntaxKind.ImplicitArrayCreationExpression or SyntaxKind.ListPattern or SyntaxKind.
CollectionExpression
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (1)
375
currentToken.Parent?.Kind() is not SyntaxKind.
CollectionExpression
and not SyntaxKind.AttributeList &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
527
&& token.Parent.IsKind(SyntaxKind.
CollectionExpression
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
793
if (newExpression.IsKind(SyntaxKind.
CollectionExpression
) &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2708
token.Parent.IsKind(SyntaxKind.
CollectionExpression
))
Microsoft.CodeAnalysis.Test.Utilities (1)
Compilation\ControlFlowGraphVerifier.cs (1)
1108
case CSharp.SyntaxKind.
CollectionExpression
: