48 references to ArrayInitializerExpression
Microsoft.CodeAnalysis.CSharp (6)
Binder\Binder_Expressions.cs (3)
573case SyntaxKind.ArrayInitializerExpression: 3508if (expression.Kind() == SyntaxKind.ArrayInitializerExpression) 3587if (expr.Kind() == SyntaxKind.ArrayInitializerExpression)
Binder\Binder_Statements.cs (2)
886if (initializer.Kind() == SyntaxKind.ArrayInitializerExpression) 1819if (node.Kind() != SyntaxKind.ArrayInitializerExpression)
Parser\LanguageParser.cs (1)
12207SyntaxKind.ArrayInitializerExpression,
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
CastSimplifier.cs (1)
938else if (castNode.Parent is InitializerExpressionSyntax(SyntaxKind.ArrayInitializerExpression) arrayInitializer)
ExpressionSyntaxExtensions.cs (1)
549case SyntaxKind.ArrayInitializerExpression:
IndentBlockFormattingRule.cs (1)
227if (node.IsKind(SyntaxKind.ArrayInitializerExpression) && node.Parent != null && node.Parent.IsKind(SyntaxKind.ArrayCreationExpression))
NewLineUserSettingFormattingRule.cs (2)
134SyntaxKind.ArrayInitializerExpression or 341currentToken.Parent.Kind() is SyntaxKind.ArrayInitializerExpression or SyntaxKind.ImplicitArrayCreationExpression)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
ExpressionGenerator.cs (1)
42SyntaxFactory.InitializerExpression(SyntaxKind.ArrayInitializerExpression,
Microsoft.CodeAnalysis.CSharp.Features (3)
BraceCompletion\CurlyBraceCompletionService.cs (1)
148SyntaxKind.ArrayInitializerExpression or
ChangeSignature\CSharpChangeSignatureService.cs (1)
898var initializerExpression = InitializerExpression(SyntaxKind.ArrayInitializerExpression, listOfArguments);
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (1)
399else if (expression is InitializerExpressionSyntax(SyntaxKind.ArrayInitializerExpression) arrayInitializer)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (25)
Parsing\AnonymousFunctionParsingTests.cs (4)
1514N(SyntaxKind.ArrayInitializerExpression); 1568N(SyntaxKind.ArrayInitializerExpression); 1662N(SyntaxKind.ArrayInitializerExpression); 1766N(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); 6098N(SyntaxKind.ArrayInitializerExpression); 6431N(SyntaxKind.ArrayInitializerExpression); 6454N(SyntaxKind.ArrayInitializerExpression); 6477N(SyntaxKind.ArrayInitializerExpression);
Parsing\ImplicitObjectCreationParsingTests.cs (1)
102M(SyntaxKind.ArrayInitializerExpression);
Parsing\LambdaAttributeParsingTests.cs (2)
3012N(SyntaxKind.ArrayInitializerExpression); 3083N(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)
3894N(SyntaxKind.ArrayInitializerExpression); 3973N(SyntaxKind.ArrayInitializerExpression);
Parsing\StatementParsingTests.cs (1)
632Assert.Equal(SyntaxKind.ArrayInitializerExpression, ds.Declaration.Variables[0].Initializer.Value.Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
CastSimplifier.cs (1)
938else if (castNode.Parent is InitializerExpressionSyntax(SyntaxKind.ArrayInitializerExpression) arrayInitializer)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
3210var initializer = SyntaxFactory.InitializerExpression(SyntaxKind.ArrayInitializerExpression, AsExpressionList(elements));
ExpressionGenerator.cs (1)
42SyntaxFactory.InitializerExpression(SyntaxKind.ArrayInitializerExpression,
IndentBlockFormattingRule.cs (1)
227if (node.IsKind(SyntaxKind.ArrayInitializerExpression) && node.Parent != null && node.Parent.IsKind(SyntaxKind.ArrayCreationExpression))
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs\ExpressionSyntaxExtensions.cs (1)
549case SyntaxKind.ArrayInitializerExpression:
NewLineUserSettingFormattingRule.cs (2)
134SyntaxKind.ArrayInitializerExpression or 341currentToken.Parent.Kind() is SyntaxKind.ArrayInitializerExpression or SyntaxKind.ImplicitArrayCreationExpression)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\MethodXml\MethodXmlBuilder.cs (1)
201case SyntaxKind.ArrayInitializerExpression: