(WyilFile.Type type)
| 1487 | } |
| 1488 | |
| 1489 | public T lookup(WyilFile.Type type) { |
| 1490 | for (int i = 1; i != operands.length; ++i) { |
| 1491 | Ref<T> candidate = (Ref<T>) operands[i]; |
| 1492 | Decl.Named<?> n = candidate.get(); |
| 1493 | if(n.getType().equals(type)) { |
| 1494 | return (T) n; |
| 1495 | } |
| 1496 | } |
| 1497 | throw new IllegalArgumentException("unable to find candidate declaration"); |
| 1498 | } |
| 1499 | |
| 1500 | @SuppressWarnings("unchecked") |
| 1501 | public void resolve(T... items) { |
no test coverage detected