public static HLSwitchInstruction Create(HLMethod pMethod, HLLocation pConditionSource, HLLabel pDefaultLabel, List<Tuple<HLLiteralLocation, HLLabel>> pCases) { HLSwitchInstruction instruction = new HLSwitchInstruction(pMethod); instruction.mConditionSource = pConditionSource; instruction.mDefaultLabel = pDefaultLabel; instruction.mCases = new List<Tuple<HLLiteralLocation, HLLabel>>(pCases); return instruction; }
public static HLSwitchInstruction Create(HLMethod pMethod, HLLocation pConditionSource, HLLabel pDefaultLabel, List <Tuple <HLLiteralLocation, HLLabel> > pCases) { HLSwitchInstruction instruction = new HLSwitchInstruction(pMethod); instruction.mConditionSource = pConditionSource; instruction.mDefaultLabel = pDefaultLabel; instruction.mCases = new List <Tuple <HLLiteralLocation, HLLabel> >(pCases); return(instruction); }