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

Method visitDoStat

src/FormatVisitor.cpp:450–457  ·  view source on GitHub ↗

DO block END;

Source from the content-addressed store, hash-verified

448
449// DO block END;
450antlrcpp::Any FormatVisitor::visitDoStat(LuaParser::DoStatContext* ctx) {
451 LOG_FUNCTION_BEGIN();
452 cur_writer() << ctx->DO()->getText();
453 visitBlockAndComment(ctx->DO(), ctx->block(), CONTROL_BLOCK);
454 cur_writer() << ctx->END()->getText();
455 LOG_FUNCTION_END();
456 return nullptr;
457}
458
459// WHILE exp DO block END;
460antlrcpp::Any FormatVisitor::visitWhileStat(LuaParser::WhileStatContext* ctx) {

Callers

nothing calls this directly

Calls 3

DOMethod · 0.80
blockMethod · 0.80
ENDMethod · 0.80

Tested by

no test coverage detected