7 references to AnalyzedSwitchLabel
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)
182
using var _ = ArrayBuilder<
AnalyzedSwitchLabel
>.GetInstance(out var labels);
197
private bool ParseSwitchLabels(IOperation operation, ArrayBuilder<
AnalyzedSwitchLabel
> labels)
209
var
label = ParseSwitchLabel(operation);
219
private
AnalyzedSwitchLabel
? ParseSwitchLabel(IOperation operation)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (1)
25
public abstract SyntaxNode AsSwitchLabelSyntax(
AnalyzedSwitchLabel
label, Feature feature);