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

Method substitute

src/main/java/wyil/lang/WyilFile.java:5468–5479  ·  view source on GitHub ↗
(java.util.function.Function<Object, Syntactic.Item> binding)

Source from the content-addressed store, hash-verified

5466 }
5467
5468 @Override
5469 public Type.Array substitute(java.util.function.Function<Object, Syntactic.Item> binding) {
5470 Type before = getElement();
5471 Type after = before.substitute(binding);
5472 if (before == after) {
5473 return this;
5474 } else if (after == null) {
5475 return null;
5476 } else {
5477 return new Array(after);
5478 }
5479 }
5480
5481 @Override
5482 public Type.Array clone(Syntactic.Item[] operands) {

Callers

nothing calls this directly

Calls 2

getElementMethod · 0.95
substituteMethod · 0.95

Tested by

no test coverage detected