1 implementation of Guard
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
8198public IOperation? Guard { get; }
10 references to Guard
Microsoft.CodeAnalysis (2)
Operations\ControlFlowGraphBuilder.cs (2)
5626if (patternClause.Guard != null) 5629VisitConditionalBranch(patternClause.Guard, ref nextCase, jumpIfTrue: false);
Microsoft.CodeAnalysis.CodeStyle (4)
src\roslyn\src\Analyzers\Core\Analyzers\PopulateSwitch\AbstractPopulateSwitchStatementDiagnosticAnalyzer.cs (1)
51else if (clause is IPatternCaseClauseOperation { Guard: null, Pattern: IConstantPatternOperation constantPattern } &&
src\roslyn\src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (3)
41if (patternCaseClause.Guard is null) 44if (patternCaseClause.Guard.ConstantValue.Value is true) 200case IPatternCaseClauseOperation { Pattern: var pattern, Guard: null }:
Microsoft.CodeAnalysis.Features (4)
src\roslyn\src\Analyzers\Core\Analyzers\PopulateSwitch\AbstractPopulateSwitchStatementDiagnosticAnalyzer.cs (1)
51else if (clause is IPatternCaseClauseOperation { Guard: null, Pattern: IConstantPatternOperation constantPattern } &&
src\roslyn\src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (3)
41if (patternCaseClause.Guard is null) 44if (patternCaseClause.Guard.ConstantValue.Value is true) 200case IPatternCaseClauseOperation { Pattern: var pattern, Guard: null }: