Skip to content
Snippets Groups Projects
Commit f83aef30 authored by Johannes Mey's avatar Johannes Mey
Browse files

fix bug, reformat

parent 50c99eca
No related branches found
No related tags found
No related merge requests found
aspect Helpers { aspect Helpers {
public void ASTNode.checkTreeStructure() { public void ASTNode.checkTreeStructure() {
for (ASTNode child : astChildren()) { for (ASTNode child : this.astChildren()) {
if (child.getParent() != this) { if (child.getParent() != this) {
throw new RuntimeException(); throw new RuntimeException();
} }
...@@ -10,9 +10,8 @@ aspect Helpers { ...@@ -10,9 +10,8 @@ aspect Helpers {
} }
public void ASTNode.fixTreeStructure() { public void ASTNode.fixTreeStructure() {
for (ASTNode child : astChildren()) { for (ASTNode child : this.astChildren()) {
if (child.getParent() != this) { if (child.getParent() != this) {
// System.err.println("fixed parent of " + child);
child.parent = this; child.parent = this;
} }
child.fixTreeStructure(); child.fixTreeStructure();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment