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

Method match

src/main/java/wycc/util/AbstractItem.java:154–162  ·  view source on GitHub ↗
(Class<S> kind)

Source from the content-addressed store, hash-verified

152 }
153
154 public <S extends Item> S match(Class<S> kind) {
155 for (int i = 0; i != size(); ++i) {
156 Item operand = operands[i];
157 if (kind.isInstance(operand)) {
158 return (S) operand;
159 }
160 }
161 return null;
162 }
163
164 @Override
165 public int hashCode() {

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.95

Tested by

no test coverage detected