示例#1
0
        public void AddFunctionToDynamicType(string funcSig, ContractDefinition dynamicType, FunctionDefinition funcDef)
        {
            if (!SignatureFunctionMap.ContainsKey(funcSig))
            {
                SignatureFunctionMap[funcSig] = new Dictionary <ContractDefinition, FunctionDefinition>();
            }

            // may potentially override the previous value due to inheritance
            SignatureFunctionMap[funcSig][dynamicType] = funcDef;
        }
示例#2
0
 public bool doesContainFunctionSignature(string funcSig)
 {
     return(SignatureFunctionMap.ContainsKey(funcSig));
 }