MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / parse_expression

Function parse_expression

compat/fake_csharp_script.cpp:363–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361}
362
363bool parse_expression(const String &p_expression, Variant &r_value) {
364 Ref<Expression> expr = Ref<Expression>(memnew(Expression()));
365 Error err = expr->parse(p_expression);
366 if (err == OK) {
367 r_value = expr->execute(Array(), nullptr, false, true);
368 if (!expr->has_execute_failed()) {
369 return true;
370 }
371 }
372 return false;
373}
374
375Ref<Script> FakeCSharpScript::load_base_script() const {
376 if (base_type_paths.size() > 0 && !base_type_paths[0].is_empty()) {

Callers 1

reloadMethod · 0.85

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected