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

Method visitFunctioncall

src/FormatVisitor.cpp:415–437  ·  view source on GitHub ↗

varOrExp nameAndArgs+;

Source from the content-addressed store, hash-verified

413
414// varOrExp nameAndArgs+;
415antlrcpp::Any FormatVisitor::visitFunctioncall(LuaParser::FunctioncallContext* ctx) {
416 LOG_FUNCTION_BEGIN();
417 chainedMethodCallHasIncIndent_.push_back(false);
418 chainedMethodCallIsFirst_.push_back(false);
419 visitVarOrExp(ctx->varOrExp());
420
421 std::string ws = buildFirstArgumentWs(ctx->nameAndArgs());
422 cur_writer() << commentAfter(ctx->varOrExp(), ws);
423
424 buildArguments(ctx->nameAndArgs());
425
426 if (ctx->SEMI() != nullptr) {
427 cur_writer() << commentAfter(ctx->nameAndArgs().back(), "");
428 cur_writer() << ctx->SEMI()->getText();
429 }
430 if (chainedMethodCallHasIncIndent_.back()) {
431 decContinuationIndent();
432 }
433 chainedMethodCallHasIncIndent_.pop_back();
434 chainedMethodCallIsFirst_.pop_back();
435 LOG_FUNCTION_END();
436 return nullptr;
437}
438
439// GOTO NAME;
440antlrcpp::Any FormatVisitor::visitGotoStat(LuaParser::GotoStatContext* ctx) {

Callers

nothing calls this directly

Calls 3

varOrExpMethod · 0.80
nameAndArgsMethod · 0.80
SEMIMethod · 0.80

Tested by

no test coverage detected