42 references to CaseKind
Microsoft.CodeAnalysis (17)
Generated\Operations.Generated.cs (2)
2678
CaseKind
CaseKind { get; }
8131
public abstract
CaseKind
CaseKind { get; }
Operations\ControlFlowGraphBuilder.cs (5)
5547
case
CaseKind
.SingleValue:
5602
case
CaseKind
.Pattern:
5626
case
CaseKind
.Relational:
5639
case
CaseKind
.Default:
5653
case
CaseKind
.Range:
Operations\OperationNodes.cs (10)
210
public override
CaseKind
CaseKind =>
CaseKind
.Range;
215
public override
CaseKind
CaseKind =>
CaseKind
.SingleValue;
220
public override
CaseKind
CaseKind =>
CaseKind
.Relational;
225
public override
CaseKind
CaseKind =>
CaseKind
.Default;
230
public override
CaseKind
CaseKind =>
CaseKind
.Pattern;
Microsoft.CodeAnalysis.CodeStyle (6)
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (6)
106
case
CaseKind
.None:
107
case
CaseKind
.Relational:
108
case
CaseKind
.Range:
113
case
CaseKind
.Default:
117
case
CaseKind
.SingleValue:
137
case
CaseKind
.Pattern:
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchStatementCodeFixProvider.cs (1)
89
if (lastCase.Clauses.Any(static c => c.CaseKind ==
CaseKind
.Default))
Microsoft.CodeAnalysis.Features (7)
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (6)
106
case
CaseKind
.None:
107
case
CaseKind
.Relational:
108
case
CaseKind
.Range:
113
case
CaseKind
.Default:
117
case
CaseKind
.SingleValue:
137
case
CaseKind
.Pattern:
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchStatementCodeFixProvider.cs (1)
89
if (lastCase.Clauses.Any(static c => c.CaseKind ==
CaseKind
.Default))
Microsoft.CodeAnalysis.Test.Utilities (11)
Compilation\OperationTreeVerifier.cs (1)
1830
var kindStr = $"{nameof(
CaseKind
)}.{operation.CaseKind}";
Compilation\TestOperationVisitor.cs (5)
216
Assert.Equal(
CaseKind
.SingleValue, operation.CaseKind);
229
Assert.Equal(
CaseKind
.Relational, operation.CaseKind);
238
Assert.Equal(
CaseKind
.Default, operation.CaseKind);
1580
Assert.Equal(
CaseKind
.Pattern, operation.CaseKind);
1626
Assert.Equal(
CaseKind
.Range, operation.CaseKind);
Diagnostics\OperationTestAnalyzer.cs (5)
350
case
CaseKind
.SingleValue:
369
case
CaseKind
.Range:
393
case
CaseKind
.Relational:
440
case
CaseKind
.Default:
903
if (caseClause.CaseKind ==
CaseKind
.Default)