MCPcopy Create free account
hub / github.com/Whiley/WhileyCompiler / clone

Method clone

src/main/java/wycc/util/AbstractHeap.java:250–252  ·  view source on GitHub ↗

Recursively copy this syntactic item. Observe the resulting cloned syntactic item is not allocated to any heap, and this must be done separately. All children are recursively cloned as well. This method preserves the underlying aliasing structure of the object being cloned. However, ali

(T item)

Source from the content-addressed store, hash-verified

248 * @return
249 */
250 public static <T extends Item> T clone(T item) {
251 return clone(item, new IdentityHashMap<>());
252 }
253
254 // ========================================================================
255 // HELPERS

Callers 1

AbstractHeapMethod · 0.95

Calls 3

getMethod · 0.65
sizeMethod · 0.65
cloneMethod · 0.65

Tested by

no test coverage detected