1 implementation of Guard
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
8158
public IOperation?
Guard
{ get; }
15 references to Guard
Microsoft.CodeAnalysis (2)
Operations\ControlFlowGraphBuilder.cs (2)
5615
if (patternClause.
Guard
!= null)
5618
VisitConditionalBranch(patternClause.
Guard
, ref nextCase, jumpIfTrue: false);
Microsoft.CodeAnalysis.CodeStyle (4)
src\Analyzers\Core\Analyzers\PopulateSwitch\AbstractPopulateSwitchStatementDiagnosticAnalyzer.cs (1)
52
else if (clause is IPatternCaseClauseOperation {
Guard
: null, Pattern: IConstantPatternOperation constantPattern } &&
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (3)
41
if (patternCaseClause.
Guard
is null)
44
if (patternCaseClause.
Guard
.ConstantValue.Value is true)
200
case IPatternCaseClauseOperation { Pattern: var pattern,
Guard
: null }:
Microsoft.CodeAnalysis.Features (4)
src\Analyzers\Core\Analyzers\PopulateSwitch\AbstractPopulateSwitchStatementDiagnosticAnalyzer.cs (1)
52
else if (clause is IPatternCaseClauseOperation {
Guard
: null, Pattern: IConstantPatternOperation constantPattern } &&
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (3)
41
if (patternCaseClause.
Guard
is null)
44
if (patternCaseClause.
Guard
.ConstantValue.Value is true)
200
case IPatternCaseClauseOperation { Pattern: var pattern,
Guard
: null }:
Microsoft.CodeAnalysis.Test.Utilities (5)
Compilation\OperationTreeVerifier.cs (3)
2069
if (operation.
Guard
!= null)
2070
Visit(operation.
Guard
, nameof(operation.
Guard
));
Compilation\TestOperationVisitor.cs (2)
1583
if (operation.
Guard
!= null)
1585
AssertEx.Equal(new[] { operation.Pattern, operation.
Guard
}, operation.ChildOperations);