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

Method getAncestor

src/main/java/wycc/lang/Syntactic.java:170–170  ·  view source on GitHub ↗

Get first ancestor of a syntactic item matching the given kind. If no item was found, then null is returned. @param child @param kind @return

(Item child, Class<T> kind)

Source from the content-addressed store, hash-verified

168 * @return
169 */
170 public <T extends Item> T getAncestor(Item child, Class<T> kind);
171
172
173 /**

Callers 13

getQualifiedNameMethod · 0.65
getSourceMethod · 0.65
getSourceMethod · 0.65
unqualifiedResolveAsMethod · 0.65
partialResolveAsMethod · 0.65
visitInvokeMethod · 0.65
isParameterMethod · 0.65
sendMethod · 0.65
toErrorMethod · 0.65
getSourceMethod · 0.65
toErrorMethod · 0.65

Implementers 1

AbstractHeapsrc/main/java/wycc/util/AbstractHeap.j

Calls

no outgoing calls

Tested by 3

toErrorMethod · 0.52
getSourceMethod · 0.52
toErrorMethod · 0.52