48 references to AnonymousObjectCreationExpression
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Expressions.cs (1)
726case SyntaxKind.AnonymousObjectCreationExpression:
Compilation\CSharpSemanticModel.cs (1)
5076case SyntaxKind.AnonymousObjectCreationExpression:
Parser\LanguageParser.cs (1)
10157case SyntaxKind.AnonymousObjectCreationExpression:
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
CSharpSyntaxKinds.cs (1)
81public int AnonymousObjectCreationExpression => (int)SyntaxKind.AnonymousObjectCreationExpression;
NewLineUserSettingFormattingRule.cs (3)
121if (currentToken.IsKind(SyntaxKind.OpenBraceToken) && currentToken.Parent.IsKind(SyntaxKind.AnonymousObjectCreationExpression)) 240if (previousToken.IsKind(SyntaxKind.CommaToken) && previousToken.Parent.IsKind(SyntaxKind.AnonymousObjectCreationExpression)) 307if (currentToken.IsKind(SyntaxKind.OpenBraceToken) && currentToken.Parent.IsKind(SyntaxKind.AnonymousObjectCreationExpression))
TypeStyleHelper.cs (1)
80!initializerExpression.IsKind(SyntaxKind.AnonymousObjectCreationExpression))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
2705if (token.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 (2)
BraceCompletion\CurlyBraceCompletionService.cs (1)
171if (currentToken.Parent.IsKind(SyntaxKind.AnonymousObjectCreationExpression))
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1830case 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()); 6142N(SyntaxKind.AnonymousObjectCreationExpression);
Parsing\ImplicitObjectCreationParsingTests.cs (1)
117N(SyntaxKind.AnonymousObjectCreationExpression);
Parsing\LambdaAttributeParsingTests.cs (2)
2879N(SyntaxKind.AnonymousObjectCreationExpression); 2954N(SyntaxKind.AnonymousObjectCreationExpression);
Parsing\ParsingErrorRecoveryTests.cs (17)
4429Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4455Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4482Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4509Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4537Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4564Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4592Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4621Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4650Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4680Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4709Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4737Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4764Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4791Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4818Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4846Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4873Assert.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)
3801N(SyntaxKind.AnonymousObjectCreationExpression);
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
CSharpSyntaxKinds.cs (1)
81public int AnonymousObjectCreationExpression => (int)SyntaxKind.AnonymousObjectCreationExpression;
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
2705if (token.Parent.IsKind(SyntaxKind.AnonymousObjectCreationExpression))
NewLineUserSettingFormattingRule.cs (3)
121if (currentToken.IsKind(SyntaxKind.OpenBraceToken) && currentToken.Parent.IsKind(SyntaxKind.AnonymousObjectCreationExpression)) 240if (previousToken.IsKind(SyntaxKind.CommaToken) && previousToken.Parent.IsKind(SyntaxKind.AnonymousObjectCreationExpression)) 307if (currentToken.IsKind(SyntaxKind.OpenBraceToken) && currentToken.Parent.IsKind(SyntaxKind.AnonymousObjectCreationExpression))
TypeStyleHelper.cs (1)
80!initializerExpression.IsKind(SyntaxKind.AnonymousObjectCreationExpression))