public CILFunction DeclareFunction(SourceInfo si, string returnType, int returnPointerDepth, string name, List <CILVariableDecl> @params, bool isVarArgs) { var retType = SymTable.LookupType(returnType); var func = new CILFunction(si, name, retType, returnPointerDepth, @params, isVarArgs); SymTable.DeclareFunction(func); return(func); }
public void AddFunction(CILFunction function) { SymTable.DeclareFunction(function); _functions.Add(function.Name, function); }