LOCAL FUNCTION NAME funcbody;
| 599 | |
| 600 | // LOCAL FUNCTION NAME funcbody; |
| 601 | antlrcpp::Any FormatVisitor::visitLocalFuncStat(LuaParser::LocalFuncStatContext* ctx) { |
| 602 | LOG_FUNCTION_BEGIN(); |
| 603 | cur_writer() << ctx->LOCAL()->getText(); |
| 604 | cur_writer() << commentAfter(ctx->LOCAL(), " "); |
| 605 | cur_writer() << ctx->FUNCTION()->getText(); |
| 606 | cur_writer() << commentAfter(ctx->FUNCTION(), " "); |
| 607 | cur_writer() << ctx->NAME()->getText(); |
| 608 | cur_writer() << commentAfter(ctx->NAME(), ""); |
| 609 | visitFuncbody(ctx->funcbody()); |
| 610 | LOG_FUNCTION_END(); |
| 611 | return nullptr; |
| 612 | } |
| 613 | |
| 614 | // LOCAL namelist (EQL explist)? SEMI?; |
| 615 | antlrcpp::Any FormatVisitor::visitLocalVarDecl(LuaParser::LocalVarDeclContext* ctx) { |