1 implementation of Clauses
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
8060public ImmutableArray<ICaseClauseOperation> Clauses { get; }
20 references to Clauses
Microsoft.CodeAnalysis (2)
Operations\ControlFlowGraphBuilder.cs (2)
5512Debug.Assert(section.Clauses.All(c => c.Label == null)); 5520foreach (ICaseClauseOperation caseClause in section.Clauses)
Microsoft.CodeAnalysis.CodeStyle (5)
src\Analyzers\Core\Analyzers\PopulateSwitch\AbstractPopulateSwitchStatementDiagnosticAnalyzer.cs (1)
45foreach (var clause in opCase.Clauses)
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (4)
31foreach (var clause in switchCase.Clauses) 84foreach (var clause in switchCase.Clauses) 101foreach (var clause in switchCase.Clauses) 193foreach (var clause in @case.Clauses)
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 (6)
src\Analyzers\Core\Analyzers\PopulateSwitch\AbstractPopulateSwitchStatementDiagnosticAnalyzer.cs (1)
45foreach (var clause in opCase.Clauses)
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (4)
31foreach (var clause in switchCase.Clauses) 84foreach (var clause in switchCase.Clauses) 101foreach (var clause in switchCase.Clauses) 193foreach (var clause in @case.Clauses)
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchStatementCodeFixProvider.cs (1)
89if (lastCase.Clauses.Any(static c => c.CaseKind == CaseKind.Default))
Microsoft.CodeAnalysis.Test.Utilities (6)
Compilation\OperationTreeVerifier.cs (3)
528foreach (ICaseClauseOperation c in section.Clauses) 542var caseClauseCountStr = $"{operation.Clauses.Length} case clauses"; 549VisitArray(operation.Clauses, "Clauses", logElementCount: false);
Compilation\TestOperationVisitor.cs (1)
172AssertEx.Equal(operation.Clauses.Concat(operation.Body), operation.ChildOperations);
Diagnostics\OperationTestAnalyzer.cs (2)
346foreach (ICaseClauseOperation clause in switchCase.Clauses) 910if (!switchSection.HasErrors(operationContext.Compilation, operationContext.CancellationToken) && switchSection.Clauses.Length > 1)