1 implementation of Guard
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
9433
public IOperation?
Guard
{ get; }
12 references to Guard
Microsoft.CodeAnalysis (2)
Operations\ControlFlowGraphBuilder.cs (2)
7797
if (arm.
Guard
!= null)
7800
VisitConditionalBranch(arm.
Guard
, ref afterArm, jumpIfTrue: false);
Microsoft.CodeAnalysis.CodeStyle (2)
src\Analyzers\Core\Analyzers\PopulateSwitch\AbstractPopulateSwitchExpressionDiagnosticAnalyzer.cs (1)
41
if (arm is {
Guard
: null, Pattern: IConstantPatternOperation constantPattern } &&
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchExpressionHelpers.cs (1)
117
if (arm.
Guard
!= null)
Microsoft.CodeAnalysis.Features (2)
src\Analyzers\Core\Analyzers\PopulateSwitch\AbstractPopulateSwitchExpressionDiagnosticAnalyzer.cs (1)
41
if (arm is {
Guard
: null, Pattern: IConstantPatternOperation constantPattern } &&
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchExpressionHelpers.cs (1)
117
if (arm.
Guard
!= null)
Microsoft.CodeAnalysis.Test.Utilities (6)
Compilation\OperationTreeVerifier.cs (3)
2128
if (operation.
Guard
!= null)
2129
Visit(operation.
Guard
, nameof(operation.
Guard
));
Compilation\TestOperationVisitor.cs (3)
1569
_ = operation.
Guard
;
1572
var children = operation.
Guard
== null
1574
: new[] { operation.Pattern, operation.
Guard
, operation.Value };