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

Method is_combinator_supported

tl/generate/tl_writer_java.cpp:50–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50bool TD_TL_writer_java::is_combinator_supported(const tl::tl_combinator *constructor) const {
51 if (!TL_writer::is_combinator_supported(constructor)) {
52 return false;
53 }
54
55 for (std::size_t i = 0; i < constructor->args.size(); i++) {
56 if (constructor->args[i].type->get_type() == tl::NODE_TYPE_VAR_TYPE) {
57 return false;
58 }
59 }
60
61 return true;
62}
63
64int TD_TL_writer_java::get_parser_type(const tl::tl_combinator *t, const std::string &parser_name) const {
65 return 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected