1 write to Cases
Microsoft.CodeAnalysis.CSharp (1)
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.ValueDispatchNode.cs (1)
42
this.
Cases
= dispatches;
9 references to Cases
Microsoft.CodeAnalysis.CSharp (9)
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (8)
631
return new ValueDispatchNode.SwitchDispatch(sd.Syntax, sd.
Cases
.Concat(cases), sd.Otherwise);
762
LengthBasedStringSwitchData.Create(node.
Cases
) is var lengthBasedDispatch &&
763
lengthBasedDispatch.ShouldGenerateLengthBasedSwitch(node.
Cases
.Length) &&
770
EnsureStringHashFunction(node.
Cases
.Length, node.Syntax, stringPatternInput);
780
var dispatch = new BoundSwitchDispatch(node.Syntax, input, node.
Cases
, defaultLabel, lengthBasedDispatchOpt);
793
cases = node.
Cases
.SelectAsArray(p => (ConstantValue.Create((long)p.value.Int32Value), p.label));
799
cases = node.
Cases
.SelectAsArray(p => (ConstantValue.Create((ulong)p.value.UInt32Value), p.label));
821
var cases = node.
Cases
.Sort(new CasesComparer(input.Type));
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.ValueDispatchNode.cs (1)
45
public override string ToString() => "[" + string.Join(",",
Cases
.Select(c => c.value)) + "]";