1 instantiation of AnalyzedSwitchLabel
Microsoft.CodeAnalysis.Features (1)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Analyzer.cs (1)
235
return new
AnalyzedSwitchLabel
(pattern, guards.ToImmutable());
10 references to AnalyzedSwitchLabel
Microsoft.CodeAnalysis.CSharp.Features (3)
ConvertIfToSwitch\CSharpConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (3)
49
var
label = section.Labels[i];
81
private static WhenClauseSyntax? AsWhenClause(
AnalyzedSwitchLabel
label)
89
public override SyntaxNode AsSwitchLabelSyntax(
AnalyzedSwitchLabel
label, Feature feature)
Microsoft.CodeAnalysis.Features (7)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.AnalyzedNodes.cs (2)
24
internal sealed class AnalyzedSwitchSection(ImmutableArray<
AnalyzedSwitchLabel
> labels, IOperation body, SyntaxNode syntaxToRemove)
26
public readonly ImmutableArray<
AnalyzedSwitchLabel
> Labels = labels;
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Analyzer.cs (4)
191
using var _ = ArrayBuilder<
AnalyzedSwitchLabel
>.GetInstance(out var labels);
206
private bool ParseSwitchLabels(IOperation operation, ArrayBuilder<
AnalyzedSwitchLabel
> labels)
218
var
label = ParseSwitchLabel(operation);
228
private
AnalyzedSwitchLabel
? ParseSwitchLabel(IOperation operation)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (1)
24
public abstract SyntaxNode AsSwitchLabelSyntax(
AnalyzedSwitchLabel
label, Feature feature);