varOrExp nameAndArgs+;
| 413 | |
| 414 | // varOrExp nameAndArgs+; |
| 415 | antlrcpp::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; |
| 440 | antlrcpp::Any FormatVisitor::visitGotoStat(LuaParser::GotoStatContext* ctx) { |
nothing calls this directly
no test coverage detected