1 implementation of Cases
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
4123public ImmutableArray<ISwitchCaseOperation> Cases { get; }
22 references to Cases
Microsoft.CodeAnalysis (3)
Generated\Operations.Generated.cs (1)
121/// Locals declared within the switch operation with scope spanning across all <see cref="Cases" />.
Operations\ControlFlowGraphBuilder.cs (2)
5476foreach (ISwitchCaseOperation section in operation.Cases) 5496foreach (ISwitchCaseOperation section in operation.Cases)
Microsoft.CodeAnalysis.CodeStyle (6)
src\Analyzers\Core\Analyzers\PopulateSwitch\AbstractPopulateSwitchStatementDiagnosticAnalyzer.cs (1)
43foreach (var opCase in operation.Cases)
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (5)
20for (var index = switchStatement.Cases.Length - 1; index >= 0; index--) 22if (HasDefaultCase(switchStatement.Cases[index])) 82foreach (var switchCase in operation.Cases) 99foreach (var switchCase in switchStatement.Cases) 191foreach (var @case in operation.Cases)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchStatementCodeFixProvider.cs (1)
85var cases = switchStatement.Cases;
Microsoft.CodeAnalysis.Features (7)
src\Analyzers\Core\Analyzers\PopulateSwitch\AbstractPopulateSwitchStatementDiagnosticAnalyzer.cs (1)
43foreach (var opCase in operation.Cases)
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (5)
20for (var index = switchStatement.Cases.Length - 1; index >= 0; index--) 22if (HasDefaultCase(switchStatement.Cases[index])) 82foreach (var switchCase in operation.Cases) 99foreach (var switchCase in switchStatement.Cases) 191foreach (var @case in operation.Cases)
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchStatementCodeFixProvider.cs (1)
85var cases = 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)