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

Method gen_vars

tl/generate/tl_writer_java.cpp:257–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257std::string TD_TL_writer_java::gen_vars(const tl::tl_combinator *t, const tl::tl_tree_type *result_type,
258 std::vector<tl::var_description> &vars) const {
259 for (std::size_t i = 0; i < vars.size(); i++) {
260 vars[i].index = static_cast<int>(i);
261 vars[i].is_stored = false;
262 vars[i].is_type = false;
263 vars[i].parameter_num = -1;
264 vars[i].function_arg_num = -1;
265 }
266
267 if (result_type != nullptr) {
268 assert(result_type->children.empty());
269 }
270
271 for (std::size_t i = 0; i < t->args.size(); i++) {
272 assert(t->args[i].type->get_type() != tl::NODE_TYPE_VAR_TYPE);
273 }
274
275 return "";
276}
277
278std::string TD_TL_writer_java::gen_function_vars(const tl::tl_combinator *t,
279 std::vector<tl::var_description> &vars) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected