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

Method visitFuncStat

src/FormatVisitor.cpp:589–598  ·  view source on GitHub ↗

FUNCTION funcname funcbody;

Source from the content-addressed store, hash-verified

587
588// FUNCTION funcname funcbody;
589antlrcpp::Any FormatVisitor::visitFuncStat(LuaParser::FuncStatContext* ctx) {
590 LOG_FUNCTION_BEGIN();
591 cur_writer() << ctx->FUNCTION()->getText();
592 cur_writer() << commentAfter(ctx->FUNCTION(), " ");
593 visitFuncname(ctx->funcname());
594 cur_writer() << commentAfter(ctx->funcname(), "");
595 visitFuncbody(ctx->funcbody());
596 LOG_FUNCTION_END();
597 return nullptr;
598}
599
600// LOCAL FUNCTION NAME funcbody;
601antlrcpp::Any FormatVisitor::visitLocalFuncStat(LuaParser::LocalFuncStatContext* ctx) {

Callers

nothing calls this directly

Calls 3

FUNCTIONMethod · 0.80
funcnameMethod · 0.80
funcbodyMethod · 0.80

Tested by

no test coverage detected