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