add the framework of a function in CodeGenerator