1 implementation of Guard
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
9395
public IOperation?
Guard
{ get; }
12 references to Guard
Microsoft.CodeAnalysis (2)
Operations\ControlFlowGraphBuilder.cs (2)
7767
if (arm.
Guard
!= null)
7770
VisitConditionalBranch(arm.
Guard
, ref afterArm, jumpIfTrue: false);
Microsoft.CodeAnalysis.CodeStyle (2)
src\Analyzers\Core\Analyzers\PopulateSwitch\AbstractPopulateSwitchExpressionDiagnosticAnalyzer.cs (1)
42
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)
42
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)
2137
if (operation.
Guard
!= null)
2138
Visit(operation.
Guard
, nameof(operation.
Guard
));
Compilation\TestOperationVisitor.cs (3)
1562
_ = operation.
Guard
;
1565
var children = operation.
Guard
== null
1567
: new[] { operation.Pattern, operation.
Guard
, operation.Value };