33 references to WithInitializerExpression
Microsoft.CodeAnalysis.CSharp (6)
Binder\Binder.IdentifierUsedAsValueFinder.cs (1)
69
assignment.Parent?.Kind() is SyntaxKind.ObjectInitializerExpression or SyntaxKind.
WithInitializerExpression
)
Binder\Binder_Expressions.cs (3)
4776
case SyntaxKind.
WithInitializerExpression
:
4802
Debug.Assert(syntax.Parent.Parent.Kind() != SyntaxKind.
WithInitializerExpression
);
4824
initializerSyntax.Kind() == SyntaxKind.
WithInitializerExpression
);
Compiler\MethodCompiler.cs (1)
2122
assignment.Parent?.Kind() is SyntaxKind.ObjectInitializerExpression or SyntaxKind.
WithInitializerExpression
)
Parser\LanguageParser.cs (1)
12011
SyntaxKind.
WithInitializerExpression
,
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
CSharpSyntaxFacts.cs (1)
647
if (identifier.Parent.IsParentKind(SyntaxKind.
WithInitializerExpression
))
NewLineUserSettingFormattingRule.cs (2)
136
SyntaxKind.
WithInitializerExpression
or
324
currentToken.Parent.Kind() is SyntaxKind.ObjectInitializerExpression or SyntaxKind.CollectionInitializerExpression or SyntaxKind.
WithInitializerExpression
or SyntaxKind.PropertyPatternClause)
Microsoft.CodeAnalysis.CSharp.Features (2)
BraceCompletion\CurlyBraceCompletionService.cs (1)
150
SyntaxKind.
WithInitializerExpression
or
Completion\CompletionProviders\ObjectAndWithInitializerCompletionProvider.cs (1)
132
token.Parent.Kind() is not (SyntaxKind.ObjectInitializerExpression or SyntaxKind.
WithInitializerExpression
))
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (18)
Parsing\LambdaAttributeParsingTests.cs (1)
3156
N(SyntaxKind.
WithInitializerExpression
);
Parsing\RecordParsing.cs (17)
1346
N(SyntaxKind.
WithInitializerExpression
);
1428
N(SyntaxKind.
WithInitializerExpression
);
1473
N(SyntaxKind.
WithInitializerExpression
);
1500
N(SyntaxKind.
WithInitializerExpression
);
1536
N(SyntaxKind.
WithInitializerExpression
);
1587
N(SyntaxKind.
WithInitializerExpression
);
1624
N(SyntaxKind.
WithInitializerExpression
);
1665
N(SyntaxKind.
WithInitializerExpression
);
1698
N(SyntaxKind.
WithInitializerExpression
);
1705
N(SyntaxKind.
WithInitializerExpression
);
1739
N(SyntaxKind.
WithInitializerExpression
);
1803
N(SyntaxKind.
WithInitializerExpression
);
1879
N(SyntaxKind.
WithInitializerExpression
);
1900
N(SyntaxKind.
WithInitializerExpression
);
1972
N(SyntaxKind.
WithInitializerExpression
);
2011
N(SyntaxKind.
WithInitializerExpression
);
2076
N(SyntaxKind.
WithInitializerExpression
);
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
CSharpSyntaxFacts.cs (1)
647
if (identifier.Parent.IsParentKind(SyntaxKind.
WithInitializerExpression
))
NewLineUserSettingFormattingRule.cs (2)
136
SyntaxKind.
WithInitializerExpression
or
324
currentToken.Parent.Kind() is SyntaxKind.ObjectInitializerExpression or SyntaxKind.CollectionInitializerExpression or SyntaxKind.
WithInitializerExpression
or SyntaxKind.PropertyPatternClause)
Simplification\CSharpSimplificationService.Expander.cs (1)
872
if (parent.Kind() is SyntaxKind.ObjectInitializerExpression or SyntaxKind.
WithInitializerExpression
)