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

fix bug, reformat

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