48 references to CoalesceExpression
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Expressions.cs (2)
653case SyntaxKind.CoalesceExpression: 902case SyntaxKind.CoalesceExpression: // ??
Parser\LanguageParser.cs (2)
10651case SyntaxKind.CoalesceExpression: 10708case 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\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
709return binaryExpression.Kind() == SyntaxKind.CoalesceExpression && binaryExpression.Right == expression && HasType(binaryExpression.Left);
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 (1)
813case SyntaxKind.CoalesceExpression:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (2)
239nodeParent is BinaryExpressionSyntax(SyntaxKind.CoalesceExpression) binary && 425if (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)
934if (binop.Kind() == SyntaxKind.CoalesceExpression)
Microsoft.CodeAnalysis.CSharp.Features (9)
CodeRefactorings\InlineMethod\CSharpInlineMethodRefactoringProvider.cs (1)
113BinaryExpressionSyntax(kind: SyntaxKind.CoalesceExpression) binaryExpressionSyntax
Debugging\CSharpProximityExpressionsService_ExpressionTermCollector.cs (1)
374case SyntaxKind.CoalesceExpression:
ReplacePropertyWithMethods\CSharpReplacePropertyWithMethodsService.cs (1)
334SyntaxKind.CoalesceAssignmentExpression => SyntaxKind.CoalesceExpression,
src\Analyzers\CSharp\Analyzers\AddRequiredParentheses\CSharpAddRequiredExpressionParenthesesDiagnosticAnalyzer.cs (1)
48SyntaxKind.CoalesceExpression,
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
709return binaryExpression.Kind() == SyntaxKind.CoalesceExpression && binaryExpression.Right == expression && HasType(binaryExpression.Left);
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 (6)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
3368=> CreateBinaryExpression(SyntaxKind.CoalesceExpression, left, right);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
813case SyntaxKind.CoalesceExpression:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (2)
239nodeParent is BinaryExpressionSyntax(SyntaxKind.CoalesceExpression) binary && 425if (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)
934if (binop.Kind() == SyntaxKind.CoalesceExpression)