Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
clone
Function · 0.70
copy
Method · 0.50
tree_type
Method · 0.50
tree_type
Class · 0.50
assign
Method · 0.50
merge
Method · 0.50
structure
Method · 0.50
type_ext.hpp
File · 0.50
statement_case
Method · 0.50
Calls
4
is_rvalue
Method · 0.80
mark_trivial
Method · 0.80
clone
Method · 0.45
detach
Method · 0.45
Tested by
no test coverage detected