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;
 }
Esempio n. 2
0
        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);
        }