MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / Clone

Method Clone

source/script_object.cpp:1328–1336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1326}
1327
1328ResultType Object::Clone(ResultToken &aResultToken, int aID, int aFlags, ExprTokenType *aParam[], int aParamCount)
1329{
1330 if (GetNativeBase() != Object::sPrototype)
1331 _o_throw(ERR_TYPE_MISMATCH, ErrorPrototype::Type); // Cannot construct an instance of this class using Object::Clone().
1332 auto clone = new Object();
1333 if (!CloneTo(*clone))
1334 _o_throw_oom;
1335 _o_return(clone);
1336}
1337
1338ResultType Map::Clone(ResultToken &aResultToken, int aID, int aFlags, ExprTokenType *aParam[], int aParamCount)
1339{

Callers

nothing calls this directly

Calls 5

MinitMethod · 0.80
SetCapacityMethod · 0.45
ToTokenMethod · 0.45
AssignMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected