1 implementation of ISwitchCaseOperation
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
8050internal sealed partial class SwitchCaseOperation : Operation, ISwitchCaseOperation
34 references to ISwitchCaseOperation
Microsoft.AspNetCore.App.Analyzers (1)
RouteHandlers\DetectAmbiguousRoutes.cs (1)
70if (current.Parent is IBlockOperation or ISwitchCaseOperation)
Microsoft.CodeAnalysis (11)
Generated\OperationKind.Generated.cs (1)
185/// <summary>Indicates an <see cref="ISwitchCaseOperation"/>.</summary>
Generated\Operations.Generated.cs (6)
131ImmutableArray<ISwitchCaseOperation> Cases { get; } 4113internal SwitchOperation(ImmutableArray<ILocalSymbol> locals, IOperation value, ImmutableArray<ISwitchCaseOperation> cases, ILabelSymbol exitLabel, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 4123public ImmutableArray<ISwitchCaseOperation> Cases { get; } 11166public override IOperation VisitSwitchCase(ISwitchCaseOperation operation, object? argument) 11495public virtual void VisitSwitchCase(ISwitchCaseOperation operation) => DefaultVisit(operation); 11634public virtual TResult? VisitSwitchCase(ISwitchCaseOperation operation, TArgument argument) => DefaultVisit(operation, argument);
Operations\ControlFlowGraphBuilder.cs (4)
5476foreach (ISwitchCaseOperation section in operation.Cases) 5496foreach (ISwitchCaseOperation section in operation.Cases) 5504void handleSection(ISwitchCaseOperation section) 5670public override IOperation VisitSwitchCase(ISwitchCaseOperation operation, int? captureIdForResult)
Microsoft.CodeAnalysis.CodeStyle (5)
src\Analyzers\Core\Analyzers\PopulateSwitch\AbstractPopulateSwitchStatementDiagnosticAnalyzer.cs (1)
43foreach (var opCase in operation.Cases)
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (4)
29private static bool HasDefaultCase(ISwitchCaseOperation switchCase) 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)
88var lastCase = cases.Last();
Microsoft.CodeAnalysis.CSharp (3)
Operations\CSharpOperationFactory.cs (3)
2687ImmutableArray<ISwitchCaseOperation> cases = CreateFromArray<BoundSwitchSection, ISwitchCaseOperation>(boundSwitchStatement.SwitchSections); 2695private ISwitchCaseOperation CreateBoundSwitchSectionOperation(BoundSwitchSection boundSwitchSection)
Microsoft.CodeAnalysis.Features (6)
src\Analyzers\Core\Analyzers\PopulateSwitch\AbstractPopulateSwitchStatementDiagnosticAnalyzer.cs (1)
43foreach (var opCase in operation.Cases)
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (4)
29private static bool HasDefaultCase(ISwitchCaseOperation switchCase) 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)
88var lastCase = cases.Last();
Microsoft.CodeAnalysis.Test.Utilities (7)
Compilation\OperationTreeVerifier.cs (3)
526foreach (ISwitchCaseOperation section in operation.Cases) 540public override void VisitSwitchCase(ISwitchCaseOperation operation) 544LogString($"{nameof(ISwitchCaseOperation)} ({caseClauseCountStr}, {statementCountStr})");
Compilation\TestOperationVisitor.cs (1)
168public override void VisitSwitchCase(ISwitchCaseOperation operation)
Diagnostics\OperationTestAnalyzer.cs (3)
344foreach (ISwitchCaseOperation switchCase in switchOperation.Cases) 909var switchSection = (ISwitchCaseOperation)operationContext.Operation;