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

Method parse_new

sources/instance/runtime.cpp:201–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199 }
200
201 var runtime_type::parse_new(const var &b)
202 {
203 if (b.is_type_of<type_t>())
204 return b.const_val<type_t>().constructor();
205 else
206 throw runtime_error("Unsupported operator operations(New).");
207 }
208
209 var runtime_type::parse_gcnew(const var &b)
210 {

Callers

nothing calls this directly

Calls 1

runtime_errorClass · 0.85

Tested by

no test coverage detected