1 implementation of Guard
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
9395public IOperation? Guard { get; }
12 references to Guard
Microsoft.CodeAnalysis (2)
Operations\ControlFlowGraphBuilder.cs (2)
7767if (arm.Guard != null) 7770VisitConditionalBranch(arm.Guard, ref afterArm, jumpIfTrue: false);
Microsoft.CodeAnalysis.CodeStyle (2)
src\Analyzers\Core\Analyzers\PopulateSwitch\AbstractPopulateSwitchExpressionDiagnosticAnalyzer.cs (1)
42if (arm is { Guard: null, Pattern: IConstantPatternOperation constantPattern } &&
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchExpressionHelpers.cs (1)
117if (arm.Guard != null)
Microsoft.CodeAnalysis.Features (2)
src\Analyzers\Core\Analyzers\PopulateSwitch\AbstractPopulateSwitchExpressionDiagnosticAnalyzer.cs (1)
42if (arm is { Guard: null, Pattern: IConstantPatternOperation constantPattern } &&
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchExpressionHelpers.cs (1)
117if (arm.Guard != null)
Microsoft.CodeAnalysis.Test.Utilities (6)
Compilation\OperationTreeVerifier.cs (3)
2137if (operation.Guard != null) 2138Visit(operation.Guard, nameof(operation.Guard));
Compilation\TestOperationVisitor.cs (3)
1562_ = operation.Guard; 1565var children = operation.Guard == null 1567: new[] { operation.Pattern, operation.Guard, operation.Value };