47 references to AnonymousObjectCreationExpression
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Expressions.cs (1)
758case SyntaxKind.AnonymousObjectCreationExpression:
Compilation\CSharpSemanticModel.cs (1)
5101case SyntaxKind.AnonymousObjectCreationExpression:
Parser\LanguageParser.cs (1)
10838case SyntaxKind.AnonymousObjectCreationExpression:
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\TypeStyle\TypeStyleHelper.cs (1)
81!initializerExpression.IsKind(SyntaxKind.AnonymousObjectCreationExpression))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (3)
121if (currentToken.IsKind(SyntaxKind.OpenBraceToken) && currentToken.Parent.IsKind(SyntaxKind.AnonymousObjectCreationExpression)) 260if (previousToken.IsKind(SyntaxKind.CommaToken) && previousToken.Parent.IsKind(SyntaxKind.AnonymousObjectCreationExpression)) 327if (currentToken.IsKind(SyntaxKind.OpenBraceToken) && currentToken.Parent.IsKind(SyntaxKind.AnonymousObjectCreationExpression))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
93public int AnonymousObjectCreationExpression => (int)SyntaxKind.AnonymousObjectCreationExpression;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2690token.Parent.IsKind(SyntaxKind.AnonymousObjectCreationExpression))
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
SymbolKey\SymbolKeyTestBase.cs (1)
390if (kind is not SyntaxKind.AnonymousObjectCreationExpression and
Microsoft.CodeAnalysis.CSharp.Features (1)
BraceCompletion\CurlyBraceCompletionService.cs (1)
165if (currentToken.Parent.IsKind(SyntaxKind.AnonymousObjectCreationExpression))
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\Source\DeclaringSyntaxNodeTests.cs (1)
269CheckDeclaringSyntaxNodesWithoutGetDeclaredSymbol(comp, localA1Type, 1, SyntaxKind.AnonymousObjectCreationExpression);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (29)
Parsing\ExpressionParsingTests.cs (2)
1927Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, expr.Kind()); 6121N(SyntaxKind.AnonymousObjectCreationExpression);
Parsing\ImplicitObjectCreationParsingTests.cs (1)
117N(SyntaxKind.AnonymousObjectCreationExpression);
Parsing\LambdaAttributeParsingTests.cs (2)
2891N(SyntaxKind.AnonymousObjectCreationExpression); 2966N(SyntaxKind.AnonymousObjectCreationExpression);
Parsing\ParsingErrorRecoveryTests.cs (17)
4591Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4617Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4644Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4671Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4699Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4726Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4754Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4783Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4812Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4842Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4871Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4899Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4926Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4953Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4980Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 5008Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 5035Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind());
Parsing\RefFieldParsingTests.cs (5)
990N(SyntaxKind.AnonymousObjectCreationExpression); 1021N(SyntaxKind.AnonymousObjectCreationExpression); 1060N(SyntaxKind.AnonymousObjectCreationExpression); 1099N(SyntaxKind.AnonymousObjectCreationExpression); 1146N(SyntaxKind.AnonymousObjectCreationExpression);
Parsing\ScriptParsingTests.cs (1)
352N(SyntaxKind.AnonymousObjectCreationExpression);
Parsing\StatementAttributeParsingTests.cs (1)
3802N(SyntaxKind.AnonymousObjectCreationExpression);
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\TypeStyle\TypeStyleHelper.cs (1)
81!initializerExpression.IsKind(SyntaxKind.AnonymousObjectCreationExpression))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (3)
121if (currentToken.IsKind(SyntaxKind.OpenBraceToken) && currentToken.Parent.IsKind(SyntaxKind.AnonymousObjectCreationExpression)) 260if (previousToken.IsKind(SyntaxKind.CommaToken) && previousToken.Parent.IsKind(SyntaxKind.AnonymousObjectCreationExpression)) 327if (currentToken.IsKind(SyntaxKind.OpenBraceToken) && currentToken.Parent.IsKind(SyntaxKind.AnonymousObjectCreationExpression))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
93public int AnonymousObjectCreationExpression => (int)SyntaxKind.AnonymousObjectCreationExpression;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2690token.Parent.IsKind(SyntaxKind.AnonymousObjectCreationExpression))