48 references to CoalesceExpression
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Expressions.cs (2)
653case SyntaxKind.CoalesceExpression: 902case SyntaxKind.CoalesceExpression: // ??
Parser\LanguageParser.cs (2)
10716case SyntaxKind.CoalesceExpression: 10773case SyntaxKind.CoalesceExpression:
Syntax\SyntaxKindFacts.cs (1)
622return SyntaxKind.CoalesceExpression;
Microsoft.CodeAnalysis.CSharp.CodeStyle (9)
src\Analyzers\CSharp\Analyzers\AddRequiredParentheses\CSharpAddRequiredExpressionParenthesesDiagnosticAnalyzer.cs (1)
48SyntaxKind.CoalesceExpression,
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundAssignmentDiagnosticAnalyzer.cs (1)
26=> assignmentKind != SyntaxKind.CoalesceExpression ||
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (1)
49context.RegisterSyntaxNodeAction(AnalyzeCoalesceExpression, SyntaxKind.CoalesceExpression);
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\Utilities.cs (1)
24(SyntaxKind.CoalesceExpression, SyntaxKind.CoalesceAssignmentExpression)).SelectAsArray(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (2)
814case SyntaxKind.CoalesceExpression: 1092return binaryExpression.Kind() == SyntaxKind.CoalesceExpression && binaryExpression.Right == expression && HasType(binaryExpression.Left, out var leftType) ? leftType : null;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (2)
243nodeParent is BinaryExpressionSyntax(SyntaxKind.CoalesceExpression) binary && 446if (parentExpression.IsKind(SyntaxKind.CoalesceExpression))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxKindExtensions.cs (1)
70return SyntaxKind.CoalesceExpression;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\RemoveUnusedParametersAndValues\CSharpRemoveUnusedValuesCodeFixProvider.cs (1)
226BinaryExpression(SyntaxKind.CoalesceExpression, leftOfAssignment, rightOfAssignment));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
950if (binop.Kind() == SyntaxKind.CoalesceExpression)
Microsoft.CodeAnalysis.CSharp.Features (8)
CodeRefactorings\InlineMethod\CSharpInlineMethodRefactoringProvider.cs (1)
113BinaryExpressionSyntax(kind: SyntaxKind.CoalesceExpression) binaryExpressionSyntax
Debugging\CSharpProximityExpressionsService_ExpressionTermCollector.cs (1)
374case SyntaxKind.CoalesceExpression:
ReplacePropertyWithMethods\CSharpReplacePropertyWithMethodsService.cs (1)
328SyntaxKind.CoalesceAssignmentExpression => SyntaxKind.CoalesceExpression,
src\Analyzers\CSharp\Analyzers\AddRequiredParentheses\CSharpAddRequiredExpressionParenthesesDiagnosticAnalyzer.cs (1)
48SyntaxKind.CoalesceExpression,
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundAssignmentDiagnosticAnalyzer.cs (1)
26=> assignmentKind != SyntaxKind.CoalesceExpression ||
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (1)
49context.RegisterSyntaxNodeAction(AnalyzeCoalesceExpression, SyntaxKind.CoalesceExpression);
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\Utilities.cs (1)
24(SyntaxKind.CoalesceExpression, SyntaxKind.CoalesceAssignmentExpression)).SelectAsArray(
src\Analyzers\CSharp\CodeFixes\RemoveUnusedParametersAndValues\CSharpRemoveUnusedValuesCodeFixProvider.cs (1)
226BinaryExpression(SyntaxKind.CoalesceExpression, leftOfAssignment, rightOfAssignment));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (17)
IncrementalParsing\BinaryExpression.cs (2)
156MakeBinOpChange(SyntaxKind.AddExpression, SyntaxKind.CoalesceExpression); 269case SyntaxKind.CoalesceExpression:
Parsing\CollectionExpressionParsingTests.cs (6)
2030N(SyntaxKind.CoalesceExpression); 2080N(SyntaxKind.CoalesceExpression); 2114N(SyntaxKind.CoalesceExpression); 2130N(SyntaxKind.CoalesceExpression); 6043N(SyntaxKind.CoalesceExpression); 6085N(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); 10153N(SyntaxKind.CoalesceExpression);
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
3349=> CreateBinaryExpression(SyntaxKind.CoalesceExpression, left, right);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (2)
814case SyntaxKind.CoalesceExpression: 1092return binaryExpression.Kind() == SyntaxKind.CoalesceExpression && binaryExpression.Right == expression && HasType(binaryExpression.Left, out var leftType) ? leftType : null;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (2)
243nodeParent is BinaryExpressionSyntax(SyntaxKind.CoalesceExpression) binary && 446if (parentExpression.IsKind(SyntaxKind.CoalesceExpression))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxKindExtensions.cs (1)
70return SyntaxKind.CoalesceExpression;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
950if (binop.Kind() == SyntaxKind.CoalesceExpression)