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