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

Function copy

sources/covscript.cpp:189–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187 }
188
189 var copy(var val)
190 {
191 if (!val.is_rvalue()) {
192 val.clone();
193 val.detach();
194 }
195 else
196 val.mark_trivial();
197 return val;
198 }
199
200 var lvalue(const var &val)
201 {

Callers 9

cloneFunction · 0.70
copyMethod · 0.50
tree_typeMethod · 0.50
tree_typeClass · 0.50
assignMethod · 0.50
mergeMethod · 0.50
structureMethod · 0.50
type_ext.hppFile · 0.50
statement_caseMethod · 0.50

Calls 4

is_rvalueMethod · 0.80
mark_trivialMethod · 0.80
cloneMethod · 0.45
detachMethod · 0.45

Tested by

no test coverage detected