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

Method getParent

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

Get first parent 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

149 * @return
150 */
151 public <T extends Item> T getParent(Item child, Class<T> kind);
152
153 /**
154 * Get all parents of a syntactic item matching the given kind.

Callers 4

selectSchemaMethod · 0.65
syntaxErrorMethod · 0.65
getParentMethod · 0.65
mirrorMethod · 0.65

Implementers 1

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

Calls

no outgoing calls

Tested by 1

mirrorMethod · 0.52