Skip to content

Commit

Permalink
Always set parent on child nodes
Browse files Browse the repository at this point in the history
Closes #3
  • Loading branch information
jazdw committed Jan 3, 2022
1 parent 42ee3ec commit 7b7d13e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/net/jazdw/rql/parser/ASTNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public ASTNode createChildNode(String name, Object... arguments) {

public ASTNode createChildNode(String name, List<Object> arguments) {
ASTNode child = new ASTNode(this, name, arguments);
child.parent = this;
this.arguments.add(child);
return child;
}
Expand Down

0 comments on commit 7b7d13e

Please sign in to comment.