MCPcopy Create free account
hub / github.com/Koihik/LuaFormatter / visitLocalFuncStat

Method visitLocalFuncStat

src/FormatVisitor.cpp:601–612  ·  view source on GitHub ↗

LOCAL FUNCTION NAME funcbody;

Source from the content-addressed store, hash-verified

599
600// LOCAL FUNCTION NAME funcbody;
601antlrcpp::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?;
615antlrcpp::Any FormatVisitor::visitLocalVarDecl(LuaParser::LocalVarDeclContext* ctx) {

Callers

nothing calls this directly

Calls 4

LOCALMethod · 0.80
FUNCTIONMethod · 0.80
NAMEMethod · 0.80
funcbodyMethod · 0.80

Tested by

no test coverage detected