38 references to WithInitializerExpression
Microsoft.CodeAnalysis.CSharp (6)
Binder\Binder.IdentifierUsedAsValueFinder.cs (1)
69assignment.Parent?.Kind() is SyntaxKind.ObjectInitializerExpression or SyntaxKind.WithInitializerExpression)
Binder\Binder_Expressions.cs (3)
5575case SyntaxKind.WithInitializerExpression: 5602Debug.Assert(syntax.Parent.Parent.Kind() != SyntaxKind.WithInitializerExpression); 5624initializerSyntax.Kind() == SyntaxKind.WithInitializerExpression);
Compiler\MethodCompiler.cs (1)
2087assignment.Parent?.Kind() is SyntaxKind.ObjectInitializerExpression or SyntaxKind.WithInitializerExpression)
Parser\LanguageParser.cs (1)
12929SyntaxKind.WithInitializerExpression,
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (2)
136or SyntaxKind.WithInitializerExpression) 344currentToken.Parent.Kind() is SyntaxKind.ObjectInitializerExpression or SyntaxKind.CollectionInitializerExpression or SyntaxKind.WithInitializerExpression or SyntaxKind.PropertyPatternClause)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
657if (identifier.Parent.IsParentKind(SyntaxKind.WithInitializerExpression))
Microsoft.CodeAnalysis.CSharp.Features (2)
BraceCompletion\CurlyBraceCompletionService.cs (1)
144SyntaxKind.WithInitializerExpression or
Completion\CompletionProviders\ObjectAndWithInitializerCompletionProvider.cs (1)
126token.Parent.Kind() is not (SyntaxKind.ObjectInitializerExpression or SyntaxKind.WithInitializerExpression))
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (23)
Parsing\CollectionExpressionParsingTests.cs (1)
1222N(SyntaxKind.WithInitializerExpression);
Parsing\LambdaAttributeParsingTests.cs (1)
3168N(SyntaxKind.WithInitializerExpression);
Parsing\RecordParsing.cs (21)
1346N(SyntaxKind.WithInitializerExpression); 1428N(SyntaxKind.WithInitializerExpression); 1473N(SyntaxKind.WithInitializerExpression); 1500N(SyntaxKind.WithInitializerExpression); 1536N(SyntaxKind.WithInitializerExpression); 1587N(SyntaxKind.WithInitializerExpression); 1624N(SyntaxKind.WithInitializerExpression); 1665N(SyntaxKind.WithInitializerExpression); 1698N(SyntaxKind.WithInitializerExpression); 1705N(SyntaxKind.WithInitializerExpression); 1739N(SyntaxKind.WithInitializerExpression); 1803N(SyntaxKind.WithInitializerExpression); 1879N(SyntaxKind.WithInitializerExpression); 1900N(SyntaxKind.WithInitializerExpression); 1972N(SyntaxKind.WithInitializerExpression); 2011N(SyntaxKind.WithInitializerExpression); 2076N(SyntaxKind.WithInitializerExpression); 2130N(SyntaxKind.WithInitializerExpression); 2144N(SyntaxKind.WithInitializerExpression); 2190N(SyntaxKind.WithInitializerExpression); 2204N(SyntaxKind.WithInitializerExpression);
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
Simplification\CSharpSimplificationService.Expander.cs (1)
873if (parent.Kind() is SyntaxKind.ObjectInitializerExpression or SyntaxKind.WithInitializerExpression)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (2)
136or SyntaxKind.WithInitializerExpression) 344currentToken.Parent.Kind() is SyntaxKind.ObjectInitializerExpression or SyntaxKind.CollectionInitializerExpression or SyntaxKind.WithInitializerExpression or SyntaxKind.PropertyPatternClause)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
657if (identifier.Parent.IsParentKind(SyntaxKind.WithInitializerExpression))