1 implementation of Guard
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
7785public IOperation? Guard { get; }
9 references to Guard
Microsoft.CodeAnalysis (2)
Operations\ControlFlowGraphBuilder.cs (2)
5518if (patternClause.Guard != null) 5521VisitConditionalBranch(patternClause.Guard, ref nextCase, jumpIfTrue: false);
Microsoft.CodeAnalysis.CodeStyle (1)
AbstractPopulateSwitchStatementDiagnosticAnalyzer.cs (1)
49else if (clause is IPatternCaseClauseOperation { Guard: null, Pattern: IConstantPatternOperation constantPattern } &&
Microsoft.CodeAnalysis.Features (1)
AbstractPopulateSwitchStatementDiagnosticAnalyzer.cs (1)
49else if (clause is IPatternCaseClauseOperation { Guard: null, Pattern: IConstantPatternOperation constantPattern } &&
Microsoft.CodeAnalysis.Test.Utilities (5)
Compilation\OperationTreeVerifier.cs (3)
2031if (operation.Guard != null) 2032Visit(operation.Guard, nameof(operation.Guard));
Compilation\TestOperationVisitor.cs (2)
1565if (operation.Guard != null) 1567AssertEx.Equal(new[] { operation.Pattern, operation.Guard }, operation.ChildOperations);