MCPcopy Create free account
hub / github.com/FabricMC/Matcher / addChild

Method addChild

src/main/java/matcher/type/MemberInstance.java:155–163  ·  view source on GitHub ↗
(T child)

Source from the content-addressed store, hash-verified

153 }
154
155 void addChild(T child) {
156 assert child.getCls() != getCls();
157 assert child != this;
158 assert !parents.contains(child);
159
160 if (children.isEmpty()) children = Util.newIdentityHashSet();
161
162 children.add(child);
163 }
164
165 public Set<T> getChildren() {
166 return children;

Callers 1

Calls 2

getClsMethod · 0.95
newIdentityHashSetMethod · 0.95

Tested by

no test coverage detected