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