58 references to ArrayCreationExpression
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Expressions.cs (2)
607case SyntaxKind.ArrayCreationExpression: 4365creationSyntax.Kind() == SyntaxKind.ArrayCreationExpression ||
Parser\LanguageParser.cs (1)
10775case SyntaxKind.ArrayCreationExpression:
Syntax\SyntaxFactory.cs (1)
2204case SyntaxKind.ArrayCreationExpression:
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForArrayDiagnosticAnalyzer.cs (1)
32context.RegisterSyntaxNodeAction(context => AnalyzeArrayCreationExpression(context, expressionType), SyntaxKind.ArrayCreationExpression);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\TypeStyle\TypeStyleHelper.cs (1)
79if (initializerExpression.Kind() is SyntaxKind.ObjectCreationExpression or SyntaxKind.ArrayCreationExpression &&
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\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
91public int ArrayCreationExpression => (int)SyntaxKind.ArrayCreationExpression;
Microsoft.CodeAnalysis.CSharp.Features (4)
Debugging\CSharpProximityExpressionsService_ExpressionTermCollector.cs (1)
102case SyntaxKind.ArrayCreationExpression:
GenerateType\CSharpGenerateTypeService.cs (1)
53expression.Parent.IsParentKind(SyntaxKind.ArrayCreationExpression);
IntroduceVariable\CSharpIntroduceVariableService.cs (1)
91if (!expression.DepthFirstTraversal().Any(n => n.RawKind == (int)SyntaxKind.ArrayCreationExpression) &&
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForArrayDiagnosticAnalyzer.cs (1)
32context.RegisterSyntaxNodeAction(context => AnalyzeArrayCreationExpression(context, expressionType), SyntaxKind.ArrayCreationExpression);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (42)
Parsing\AnonymousFunctionParsingTests.cs (10)
1191N(SyntaxKind.ArrayCreationExpression); 1248N(SyntaxKind.ArrayCreationExpression); 1294N(SyntaxKind.ArrayCreationExpression); 1361N(SyntaxKind.ArrayCreationExpression); 1439N(SyntaxKind.ArrayCreationExpression); 1495N(SyntaxKind.ArrayCreationExpression); 1549N(SyntaxKind.ArrayCreationExpression); 1643N(SyntaxKind.ArrayCreationExpression); 1747N(SyntaxKind.ArrayCreationExpression); 1824N(SyntaxKind.ArrayCreationExpression);
Parsing\AwaitParsingTests.cs (1)
1919N(SyntaxKind.ArrayCreationExpression);
Parsing\CollectionExpressionParsingTests.cs (5)
6666N(SyntaxKind.ArrayCreationExpression); 6698N(SyntaxKind.ArrayCreationExpression); 6735N(SyntaxKind.ArrayCreationExpression); 6779N(SyntaxKind.ArrayCreationExpression); 6830N(SyntaxKind.ArrayCreationExpression);
Parsing\ExpressionParsingTests.cs (8)
1361Assert.Equal(SyntaxKind.ArrayCreationExpression, expr.Kind()); 1387N(SyntaxKind.ArrayCreationExpression); 1469N(SyntaxKind.ArrayCreationExpression); 1731N(SyntaxKind.ArrayCreationExpression); 1839Assert.Equal(SyntaxKind.ArrayCreationExpression, expr.Kind()); 1861Assert.Equal(SyntaxKind.ArrayCreationExpression, expr.Kind()); 1885Assert.Equal(SyntaxKind.ArrayCreationExpression, expr.Kind()); 3013Assert.Equal(SyntaxKind.ArrayCreationExpression, expr.Kind());
Parsing\ImplicitObjectCreationParsingTests.cs (1)
182N(SyntaxKind.ArrayCreationExpression);
Parsing\NullableParsingTests.cs (6)
1390N(SyntaxKind.ArrayCreationExpression); 1501N(SyntaxKind.ArrayCreationExpression); 1565N(SyntaxKind.ArrayCreationExpression); 1629N(SyntaxKind.ArrayCreationExpression); 1693N(SyntaxKind.ArrayCreationExpression); 1720N(SyntaxKind.ArrayCreationExpression);
Parsing\ScriptParsingTests.cs (2)
391N(SyntaxKind.ArrayCreationExpression); 433N(SyntaxKind.ArrayCreationExpression);
Parsing\SeparatedSyntaxListParsingTests.cs (8)
820N(SyntaxKind.ArrayCreationExpression); 859N(SyntaxKind.ArrayCreationExpression); 898N(SyntaxKind.ArrayCreationExpression); 942N(SyntaxKind.ArrayCreationExpression); 986N(SyntaxKind.ArrayCreationExpression); 1035N(SyntaxKind.ArrayCreationExpression); 1079N(SyntaxKind.ArrayCreationExpression); 1123N(SyntaxKind.ArrayCreationExpression);
Parsing\StatementAttributeParsingTests.cs (1)
3876N(SyntaxKind.ArrayCreationExpression);
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\TypeStyle\TypeStyleHelper.cs (1)
79if (initializerExpression.Kind() is SyntaxKind.ObjectCreationExpression or SyntaxKind.ArrayCreationExpression &&
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\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
91public int ArrayCreationExpression => (int)SyntaxKind.ArrayCreationExpression;
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\MethodXml\MethodXmlBuilder.cs (1)
198case SyntaxKind.ArrayCreationExpression: