Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        public CILFunction CreateFunction(SourceInfo si, string returnType, int returnPointerDepth, string name,
                                          List <CILVariableDecl> @params)
        {
            var retType = SymTable.LookupType(returnType);
            var func    = new CILFunction(si, name, retType, returnPointerDepth, @params, false);

            AddFunction(func);
            return(func);
        }