//////////////////////////////////////////////////////////////////////////////// // // Add Function Declarations // //////////////////////////////////////////////////////////////////////////////// public void AddFunctionLoc(FunctionType fnTy) { this.indexingFunction.Add(IndexEntry.CreateLocal(this.localFunctionCt)); DefFunction df = new DefFunction(this.functions.Count, fnTy); this.functions.Add(df); ++this.localFunctionCt; }
public void AddFunctionImp(string module, string fieldname, FunctionType fnTy) { this.indexingFunction.Add(IndexEntry.CreateImport(this.importFunctionsCt, module, fieldname)); DefFunction df = new DefFunction(this.importFunctionsCt, fnTy); this.functions.Add(df); this.GetOrCreateRecord(module).functions.Add(fieldname, df); ++this.importFunctionsCt; }