1 implementation of Cases
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
3750public ImmutableArray<ISwitchCaseOperation> Cases { get; }
20 references to Cases
Microsoft.CodeAnalysis (3)
Generated\Operations.Generated.cs (1)
113/// Locals declared within the switch operation with scope spanning across all <see cref="Cases" />.
Operations\ControlFlowGraphBuilder.cs (2)
5379foreach (ISwitchCaseOperation section in operation.Cases) 5399foreach (ISwitchCaseOperation section in operation.Cases)
Microsoft.CodeAnalysis.CodeStyle (5)
AbstractPopulateSwitchStatementDiagnosticAnalyzer.cs (1)
40foreach (var opCase in operation.Cases)
PopulateSwitchStatementHelpers.cs (4)
20for (var index = switchStatement.Cases.Length - 1; index >= 0; index--) 22if (HasDefaultCase(switchStatement.Cases[index])) 71foreach (var switchCase in operation.Cases) 88foreach (var switchCase in switchStatement.Cases)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
AbstractPopulateSwitchStatementCodeFixProvider.cs (1)
85var cases = switchStatement.Cases;
Microsoft.CodeAnalysis.Features (6)
AbstractPopulateSwitchStatementCodeFixProvider.cs (1)
85var cases = switchStatement.Cases;
AbstractPopulateSwitchStatementDiagnosticAnalyzer.cs (1)
40foreach (var opCase in operation.Cases)
PopulateSwitchStatementHelpers.cs (4)
20for (var index = switchStatement.Cases.Length - 1; index >= 0; index--) 22if (HasDefaultCase(switchStatement.Cases[index])) 71foreach (var switchCase in operation.Cases) 88foreach (var switchCase in switchStatement.Cases)
Microsoft.CodeAnalysis.Test.Utilities (5)
Compilation\OperationTreeVerifier.cs (3)
518var caseCountStr = $"{operation.Cases.Length} cases"; 526foreach (ISwitchCaseOperation section in operation.Cases) 537VisitArray(operation.Cases, "Sections", logElementCount: false);
Compilation\TestOperationVisitor.cs (1)
165AssertEx.Equal(new[] { operation.Value }.Concat(operation.Cases), operation.ChildOperations);
Diagnostics\OperationTestAnalyzer.cs (1)
344foreach (ISwitchCaseOperation switchCase in switchOperation.Cases)