40 references to CoalesceExpression
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Expressions.cs (2)
621case SyntaxKind.CoalesceExpression: 866case SyntaxKind.CoalesceExpression: // ??
Parser\LanguageParser.cs (2)
10035case SyntaxKind.CoalesceExpression: 10092case SyntaxKind.CoalesceExpression:
Syntax\SyntaxKindFacts.cs (1)
594return SyntaxKind.CoalesceExpression;
Microsoft.CodeAnalysis.CSharp.CodeStyle (8)
CSharpAddRequiredExpressionParenthesesDiagnosticAnalyzer.cs (1)
47SyntaxKind.CoalesceExpression,
CSharpUseCompoundAssignmentDiagnosticAnalyzer.cs (1)
26=> assignmentKind != SyntaxKind.CoalesceExpression ||
CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (1)
49context.RegisterSyntaxNodeAction(AnalyzeCoalesceExpression, SyntaxKind.CoalesceExpression);
ExpressionSyntaxExtensions.cs (1)
831case SyntaxKind.CoalesceExpression:
ParenthesizedExpressionSyntaxExtensions.cs (2)
239nodeParent is BinaryExpressionSyntax(SyntaxKind.CoalesceExpression) binary && 436if (parentExpression.IsKind(SyntaxKind.CoalesceExpression))
SyntaxKindExtensions.cs (1)
70return SyntaxKind.CoalesceExpression;
Utilities.cs (1)
24(SyntaxKind.CoalesceExpression, SyntaxKind.CoalesceAssignmentExpression)).SelectAsArray(
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
CSharpRemoveUnusedValuesCodeFixProvider.cs (1)
183SyntaxFactory.BinaryExpression(SyntaxKind.CoalesceExpression, leftOfAssignment, rightOfAssignment));
CSharpTypeInferenceService.TypeInferrer.cs (1)
954if (binop.Kind() == SyntaxKind.CoalesceExpression)
Microsoft.CodeAnalysis.CSharp.Features (8)
CodeRefactorings\InlineMethod\CSharpInlineMethodRefactoringProvider.cs (1)
116if (parent is BinaryExpressionSyntax binaryExpressionSyntax && binaryExpressionSyntax.IsKind(SyntaxKind.CoalesceExpression))
CSharpAddRequiredExpressionParenthesesDiagnosticAnalyzer.cs (1)
47SyntaxKind.CoalesceExpression,
CSharpRemoveUnusedValuesCodeFixProvider.cs (1)
183SyntaxFactory.BinaryExpression(SyntaxKind.CoalesceExpression, leftOfAssignment, rightOfAssignment));
CSharpUseCompoundAssignmentDiagnosticAnalyzer.cs (1)
26=> assignmentKind != SyntaxKind.CoalesceExpression ||
CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (1)
49context.RegisterSyntaxNodeAction(AnalyzeCoalesceExpression, SyntaxKind.CoalesceExpression);
Debugging\CSharpProximityExpressionsService_ExpressionTermCollector.cs (1)
375case SyntaxKind.CoalesceExpression:
ReplacePropertyWithMethods\CSharpReplacePropertyWithMethodsService.cs (1)
331SyntaxKind.CoalesceAssignmentExpression => SyntaxKind.CoalesceExpression,
Utilities.cs (1)
24(SyntaxKind.CoalesceExpression, SyntaxKind.CoalesceAssignmentExpression)).SelectAsArray(
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (11)
IncrementalParsing\BinaryExpression.cs (2)
156MakeBinOpChange(SyntaxKind.AddExpression, SyntaxKind.CoalesceExpression); 269case SyntaxKind.CoalesceExpression:
Parsing\ExpressionParsingTests.cs (1)
5154N(SyntaxKind.CoalesceExpression);
Parsing\NullableParsingTests.cs (6)
151N(SyntaxKind.CoalesceExpression); 496N(SyntaxKind.CoalesceExpression); 523N(SyntaxKind.CoalesceExpression); 565N(SyntaxKind.CoalesceExpression); 603N(SyntaxKind.CoalesceExpression); 642N(SyntaxKind.CoalesceExpression);
Parsing\PatternParsingTests.cs (2)
198N(SyntaxKind.CoalesceExpression); 10192N(SyntaxKind.CoalesceExpression);
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
3367=> CreateBinaryExpression(SyntaxKind.CoalesceExpression, left, right);
CSharpTypeInferenceService.TypeInferrer.cs (1)
954if (binop.Kind() == SyntaxKind.CoalesceExpression)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs\ExpressionSyntaxExtensions.cs (1)
831case SyntaxKind.CoalesceExpression:
ParenthesizedExpressionSyntaxExtensions.cs (2)
239nodeParent is BinaryExpressionSyntax(SyntaxKind.CoalesceExpression) binary && 436if (parentExpression.IsKind(SyntaxKind.CoalesceExpression))
SyntaxKindExtensions.cs (1)
70return SyntaxKind.CoalesceExpression;