MCPcopy
hub / github.com/Col-E/Recaf / addChild

Method addChild

src/main/java/me/coley/recaf/parse/bytecode/ast/AST.java:55–65  ·  view source on GitHub ↗

@param ast Child node to add.

(AST ast)

Source from the content-addressed store, hash-verified

53 * Child node to add.
54 */
55 public void addChild(AST ast) {
56 // Link parent/child
57 getChildren().add(ast);
58 ast.setParent(this);
59 // Link prev/next for children
60 if (getChildren().size() > 1) {
61 AST prev = getChildren().get(getChildren().size() - 2);
62 prev.setNext(ast);
63 ast.setPrev(prev);
64 }
65 }
66
67 /**
68 * @param type

Callers 15

parseMethod · 0.45
visitMethod · 0.45
visitMethod · 0.45
DefinitionArgASTMethod · 0.45
IntInsnASTMethod · 0.45
MultiArrayInsnASTMethod · 0.45
InvokeDynamicASTMethod · 0.45
FieldInsnASTMethod · 0.45
ThrowsASTMethod · 0.45
LineInsnASTMethod · 0.45
TryCatchASTMethod · 0.45
VarInsnASTMethod · 0.45

Calls 7

getChildrenMethod · 0.95
setNextMethod · 0.95
setPrevMethod · 0.80
addMethod · 0.45
setParentMethod · 0.45
sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected