48 references to CoalesceExpression
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Expressions.cs (2)
653
case SyntaxKind.
CoalesceExpression
:
902
case SyntaxKind.
CoalesceExpression
: // ??
Parser\LanguageParser.cs (2)
10651
case SyntaxKind.
CoalesceExpression
:
10708
case SyntaxKind.
CoalesceExpression
:
Syntax\SyntaxKindFacts.cs (1)
622
return SyntaxKind.
CoalesceExpression
;
Microsoft.CodeAnalysis.CSharp.CodeStyle (9)
src\Analyzers\CSharp\Analyzers\AddRequiredParentheses\CSharpAddRequiredExpressionParenthesesDiagnosticAnalyzer.cs (1)
48
SyntaxKind.
CoalesceExpression
,
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
709
return 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)
49
context.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)
813
case SyntaxKind.
CoalesceExpression
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (2)
239
nodeParent is BinaryExpressionSyntax(SyntaxKind.
CoalesceExpression
) binary &&
425
if (parentExpression.IsKind(SyntaxKind.
CoalesceExpression
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxKindExtensions.cs (1)
70
return SyntaxKind.
CoalesceExpression
;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\RemoveUnusedParametersAndValues\CSharpRemoveUnusedValuesCodeFixProvider.cs (1)
226
BinaryExpression(SyntaxKind.
CoalesceExpression
, leftOfAssignment, rightOfAssignment));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
934
if (binop.Kind() == SyntaxKind.
CoalesceExpression
)
Microsoft.CodeAnalysis.CSharp.Features (9)
CodeRefactorings\InlineMethod\CSharpInlineMethodRefactoringProvider.cs (1)
113
BinaryExpressionSyntax(kind: SyntaxKind.
CoalesceExpression
) binaryExpressionSyntax
Debugging\CSharpProximityExpressionsService_ExpressionTermCollector.cs (1)
374
case SyntaxKind.
CoalesceExpression
:
ReplacePropertyWithMethods\CSharpReplacePropertyWithMethodsService.cs (1)
334
SyntaxKind.CoalesceAssignmentExpression => SyntaxKind.
CoalesceExpression
,
src\Analyzers\CSharp\Analyzers\AddRequiredParentheses\CSharpAddRequiredExpressionParenthesesDiagnosticAnalyzer.cs (1)
48
SyntaxKind.
CoalesceExpression
,
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
709
return 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)
49
context.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)
226
BinaryExpression(SyntaxKind.
CoalesceExpression
, leftOfAssignment, rightOfAssignment));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (17)
IncrementalParsing\BinaryExpression.cs (2)
156
MakeBinOpChange(SyntaxKind.AddExpression, SyntaxKind.
CoalesceExpression
);
269
case SyntaxKind.
CoalesceExpression
:
Parsing\CollectionExpressionParsingTests.cs (6)
2030
N(SyntaxKind.
CoalesceExpression
);
2080
N(SyntaxKind.
CoalesceExpression
);
2114
N(SyntaxKind.
CoalesceExpression
);
2130
N(SyntaxKind.
CoalesceExpression
);
6043
N(SyntaxKind.
CoalesceExpression
);
6085
N(SyntaxKind.
CoalesceExpression
);
Parsing\ExpressionParsingTests.cs (1)
5154
N(SyntaxKind.
CoalesceExpression
);
Parsing\NullableParsingTests.cs (6)
151
N(SyntaxKind.
CoalesceExpression
);
496
N(SyntaxKind.
CoalesceExpression
);
523
N(SyntaxKind.
CoalesceExpression
);
565
N(SyntaxKind.
CoalesceExpression
);
603
N(SyntaxKind.
CoalesceExpression
);
642
N(SyntaxKind.
CoalesceExpression
);
Parsing\PatternParsingTests.cs (2)
198
N(SyntaxKind.
CoalesceExpression
);
10153
N(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)
813
case SyntaxKind.
CoalesceExpression
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (2)
239
nodeParent is BinaryExpressionSyntax(SyntaxKind.
CoalesceExpression
) binary &&
425
if (parentExpression.IsKind(SyntaxKind.
CoalesceExpression
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxKindExtensions.cs (1)
70
return SyntaxKind.
CoalesceExpression
;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
934
if (binop.Kind() == SyntaxKind.
CoalesceExpression
)