MCPcopy Create free account
hub / github.com/TelegramMessenger/cocoon / gen_fetch_switch_case

Method gen_fetch_switch_case

tl/generate/tl_writer_cpp.cpp:653–659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

651}
652
653std::string TD_TL_writer_cpp::gen_fetch_switch_case(const tl::tl_combinator *t, int arity) const {
654 assert(arity == 0);
655 return " case " + gen_class_name(t->name) +
656 "::ID:\n"
657 " return " +
658 gen_class_name(t->name) + "::fetch(p);\n";
659}
660
661std::string TD_TL_writer_cpp::gen_fetch_switch_end() const {
662 return " default:\n"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected