6 implementations of CaseKind
Microsoft.CodeAnalysis (6)
Generated\Operations.Generated.cs (1)
8131public abstract CaseKind CaseKind { get; }
Operations\OperationNodes.cs (5)
210public override CaseKind CaseKind => CaseKind.Range; 215public override CaseKind CaseKind => CaseKind.SingleValue; 220public override CaseKind CaseKind => CaseKind.Relational; 225public override CaseKind CaseKind => CaseKind.Default; 230public override CaseKind CaseKind => CaseKind.Pattern;
15 references to CaseKind
Microsoft.CodeAnalysis (3)
Generated\OperationKind.Generated.cs (1)
187/// <summary>Indicates an <see cref="ICaseClauseOperation"/>. This is further differentiated by <see cref="ICaseClauseOperation.CaseKind"/>.</summary>
Operations\ControlFlowGraphBuilder.cs (2)
5545switch (caseClause.CaseKind) 5657throw ExceptionUtilities.UnexpectedValue(caseClause.CaseKind);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (1)
103switch (clause.CaseKind)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchStatementCodeFixProvider.cs (1)
89if (lastCase.Clauses.Any(static c => c.CaseKind == CaseKind.Default))
Microsoft.CodeAnalysis.Features (2)
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (1)
103switch (clause.CaseKind)
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchStatementCodeFixProvider.cs (1)
89if (lastCase.Clauses.Any(static c => c.CaseKind == CaseKind.Default))
Microsoft.CodeAnalysis.Test.Utilities (8)
Compilation\OperationTreeVerifier.cs (1)
1830var kindStr = $"{nameof(CaseKind)}.{operation.CaseKind}";
Compilation\TestOperationVisitor.cs (5)
216Assert.Equal(CaseKind.SingleValue, operation.CaseKind); 229Assert.Equal(CaseKind.Relational, operation.CaseKind); 238Assert.Equal(CaseKind.Default, operation.CaseKind); 1580Assert.Equal(CaseKind.Pattern, operation.CaseKind); 1626Assert.Equal(CaseKind.Range, operation.CaseKind);
Diagnostics\OperationTestAnalyzer.cs (2)
348switch (clause.CaseKind) 903if (caseClause.CaseKind == CaseKind.Default)