63 references to ArrayInitializerExpression
Microsoft.CodeAnalysis.CSharp (6)
Binder\Binder_Expressions.cs (3)
605case SyntaxKind.ArrayInitializerExpression: 4165if (expression.Kind() == SyntaxKind.ArrayInitializerExpression) 4244if (expr.Kind() == SyntaxKind.ArrayInitializerExpression)
Binder\Binder_Statements.cs (2)
883if (initializer.Kind() == SyntaxKind.ArrayInitializerExpression) 1831if (node.Kind() != SyntaxKind.ArrayInitializerExpression)
Parser\LanguageParser.cs (1)
13125SyntaxKind.ArrayInitializerExpression,
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForArrayDiagnosticAnalyzer.cs (1)
31context.RegisterSyntaxNodeAction(context => AnalyzeArrayInitializerExpression(context, expressionType), SyntaxKind.ArrayInitializerExpression);
src\Analyzers\CSharp\Analyzers\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationDiagnosticAnalyzer.cs (1)
123else if (objectCreation.Parent is InitializerExpressionSyntax(kind: SyntaxKind.ArrayInitializerExpression)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
565case SyntaxKind.ArrayInitializerExpression:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (1)
233if (node.IsKind(SyntaxKind.ArrayInitializerExpression) && node.Parent != null && node.Parent.IsKind(SyntaxKind.ArrayCreationExpression))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (2)
134or SyntaxKind.ArrayInitializerExpression 361currentToken.Parent.Kind() is SyntaxKind.ArrayInitializerExpression or SyntaxKind.ImplicitArrayCreationExpression)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
1085else if (castNode.Parent is InitializerExpressionSyntax(SyntaxKind.ArrayInitializerExpression) arrayInitializer)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\UseExplicitArrayInExpressionTree\CSharpUseExplicitArrayInExpressionTreeCodeFixProvider.cs (1)
166SyntaxKind.ArrayInitializerExpression,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
43InitializerExpression(SyntaxKind.ArrayInitializerExpression,
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
CompleteStatement\CompleteStatementCommandHandler.cs (1)
221SyntaxKind.ArrayInitializerExpression or
Microsoft.CodeAnalysis.CSharp.Features (6)
BraceCompletion\CurlyBraceCompletionService.cs (1)
142SyntaxKind.ArrayInitializerExpression or
ChangeSignature\CSharpChangeSignatureService.cs (1)
908var initializerExpression = InitializerExpression(SyntaxKind.ArrayInitializerExpression, listOfArguments);
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (1)
393else if (expression is InitializerExpressionSyntax(SyntaxKind.ArrayInitializerExpression) arrayInitializer)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForArrayDiagnosticAnalyzer.cs (1)
31context.RegisterSyntaxNodeAction(context => AnalyzeArrayInitializerExpression(context, expressionType), SyntaxKind.ArrayInitializerExpression);
src\Analyzers\CSharp\Analyzers\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationDiagnosticAnalyzer.cs (1)
123else if (objectCreation.Parent is InitializerExpressionSyntax(kind: SyntaxKind.ArrayInitializerExpression)
src\Analyzers\CSharp\CodeFixes\UseExplicitArrayInExpressionTree\CSharpUseExplicitArrayInExpressionTreeCodeFixProvider.cs (1)
166SyntaxKind.ArrayInitializerExpression,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (30)
Parsing\AnonymousFunctionParsingTests.cs (4)
1514N(SyntaxKind.ArrayInitializerExpression); 1568N(SyntaxKind.ArrayInitializerExpression); 1662N(SyntaxKind.ArrayInitializerExpression); 1766N(SyntaxKind.ArrayInitializerExpression);
Parsing\CollectionExpressionParsingTests.cs (5)
6721N(SyntaxKind.ArrayInitializerExpression); 6814N(SyntaxKind.ArrayInitializerExpression); 7711M(SyntaxKind.ArrayInitializerExpression); 7743M(SyntaxKind.ArrayInitializerExpression); 7775N(SyntaxKind.ArrayInitializerExpression);
Parsing\DeclarationParsingTests.cs (1)
3934Assert.Equal(SyntaxKind.ArrayInitializerExpression, fs.Declaration.Variables[0].Initializer.Value.Kind());
Parsing\DeconstructionTests.cs (1)
1706N(SyntaxKind.ArrayInitializerExpression);
Parsing\ExpressionParsingTests.cs (7)
378N(SyntaxKind.ArrayInitializerExpression); 6030N(SyntaxKind.ArrayInitializerExpression); 6061N(SyntaxKind.ArrayInitializerExpression); 6091N(SyntaxKind.ArrayInitializerExpression); 6409N(SyntaxKind.ArrayInitializerExpression); 6436N(SyntaxKind.ArrayInitializerExpression); 6464N(SyntaxKind.ArrayInitializerExpression);
Parsing\ImplicitObjectCreationParsingTests.cs (1)
102M(SyntaxKind.ArrayInitializerExpression);
Parsing\LambdaAttributeParsingTests.cs (2)
3024N(SyntaxKind.ArrayInitializerExpression); 3095N(SyntaxKind.ArrayInitializerExpression);
Parsing\ScriptParsingTests.cs (2)
324N(SyntaxKind.ArrayInitializerExpression); 452N(SyntaxKind.ArrayInitializerExpression);
Parsing\StackAllocInitializerParsingTests.cs (4)
53N(SyntaxKind.ArrayInitializerExpression); 100N(SyntaxKind.ArrayInitializerExpression); 133N(SyntaxKind.ArrayInitializerExpression); 170N(SyntaxKind.ArrayInitializerExpression);
Parsing\StatementAttributeParsingTests.cs (2)
3895N(SyntaxKind.ArrayInitializerExpression); 3974N(SyntaxKind.ArrayInitializerExpression);
Parsing\StatementParsingTests.cs (1)
632Assert.Equal(SyntaxKind.ArrayInitializerExpression, ds.Declaration.Variables[0].Initializer.Value.Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
3192var initializer = SyntaxFactory.InitializerExpression(SyntaxKind.ArrayInitializerExpression, AsExpressionList(elements));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
565case SyntaxKind.ArrayInitializerExpression:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (1)
233if (node.IsKind(SyntaxKind.ArrayInitializerExpression) && node.Parent != null && node.Parent.IsKind(SyntaxKind.ArrayCreationExpression))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (2)
134or SyntaxKind.ArrayInitializerExpression 361currentToken.Parent.Kind() is SyntaxKind.ArrayInitializerExpression or SyntaxKind.ImplicitArrayCreationExpression)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
1085else if (castNode.Parent is InitializerExpressionSyntax(SyntaxKind.ArrayInitializerExpression) arrayInitializer)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
43InitializerExpression(SyntaxKind.ArrayInitializerExpression,
Microsoft.Interop.JavaScript.JSImportGenerator (2)
JSExportCodeGenerator.cs (1)
172.WithInitializer(InitializerExpression(SyntaxKind.ArrayInitializerExpression, SeparatedList(types))));
JSImportCodeGenerator.cs (1)
164.WithInitializer(InitializerExpression(SyntaxKind.ArrayInitializerExpression, SeparatedList(types))));
Microsoft.Interop.LibraryImportGenerator (1)
LibraryImportGenerator.cs (1)
129InitializerExpressionSyntax callConvs = InitializerExpression(SyntaxKind.ArrayInitializerExpression);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\MethodXml\MethodXmlBuilder.cs (1)
201case SyntaxKind.ArrayInitializerExpression: