generate function dummy from AST