1 implementation of Guard
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
9022
public IOperation?
Guard
{ get; }
10 references to Guard
Microsoft.CodeAnalysis (2)
Operations\ControlFlowGraphBuilder.cs (2)
7501
if (arm.
Guard
!= null)
7504
VisitConditionalBranch(arm.
Guard
, ref afterArm, jumpIfTrue: false);
Microsoft.CodeAnalysis.CodeStyle (1)
AbstractPopulateSwitchExpressionDiagnosticAnalyzer.cs (1)
39
if (arm is {
Guard
: null, Pattern: IConstantPatternOperation constantPattern } &&
Microsoft.CodeAnalysis.Features (1)
AbstractPopulateSwitchExpressionDiagnosticAnalyzer.cs (1)
39
if (arm is {
Guard
: null, Pattern: IConstantPatternOperation constantPattern } &&
Microsoft.CodeAnalysis.Test.Utilities (6)
Compilation\OperationTreeVerifier.cs (3)
2099
if (operation.
Guard
!= null)
2100
Visit(operation.
Guard
, nameof(operation.
Guard
));
Compilation\TestOperationVisitor.cs (3)
1544
_ = operation.
Guard
;
1547
var children = operation.
Guard
== null
1549
: new[] { operation.Pattern, operation.
Guard
, operation.Value };