MCPcopy Create free account
hub / github.com/covscript/covscript / parse_pair

Method parse_pair

sources/instance/runtime.cpp:297–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295 }
296
297 var runtime_type::parse_pair(const var &a, const var &b)
298 {
299 if (!a.is_type_of<pair>() && !b.is_type_of<pair>())
300 return var::make<pair>(copy(a), copy(b));
301 else
302 throw runtime_error("Unsupported operator operations(Pair).");
303 }
304
305 var runtime_type::parse_equ(const var &a, const var &b)
306 {

Callers

nothing calls this directly

Calls 2

runtime_errorClass · 0.85
copyFunction · 0.50

Tested by

no test coverage detected