MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / exec_statements

Function exec_statements

subprojects/llama.cpp/common/jinja/runtime.cpp:21–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21static value_string exec_statements(const statements & stmts, context & ctx) {
22 auto result = mk_val<value_array>();
23 for (const auto & stmt : stmts) {
24 JJ_DEBUG("Executing statement of type %s", stmt->type().c_str());
25 result->push_back(stmt->execute(ctx));
26 }
27 // convert to string parts
28 value_string str = mk_val<value_string>();
29 gather_string_parts_recursive(result, str);
30 return str;
31}
32
33static std::string get_line_col(const std::string & source, size_t pos) {
34 size_t line = 1;

Callers 1

execute_implMethod · 0.85

Calls 4

typeMethod · 0.65
push_backMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected