Exemple #1
0
        public List <Opcode> GetUserFunctionOpcodes(int expressionHash)
        {
            if (functions.ContainsKey(expressionHash))
            {
                return(functions[expressionHash].Code);
            }
            var newUserFuncFragment = new UserFunctionCodeFragment();

            functions.Add(expressionHash, newUserFuncFragment);
            newFunctions.Add(newUserFuncFragment);
            return(newUserFuncFragment.Code);
        }
Exemple #2
0
 public List<Opcode> GetUserFunctionOpcodes(int expressionHash)
 {
     if (functions.ContainsKey(expressionHash))
     {
         return functions[expressionHash].Code;
     }
     var newUserFuncFragment = new UserFunctionCodeFragment();
     functions.Add(expressionHash, newUserFuncFragment);
     newFunctions.Add(newUserFuncFragment);
     return newUserFuncFragment.Code;
 }