Skip to content

Commit

Permalink
fix: repetition nodes were not allowing the walker to visit their chi…
Browse files Browse the repository at this point in the history
…ld nodes
  • Loading branch information
ColinEberhardt committed Mar 2, 2021
1 parent d4ca9c9 commit 4dc21b0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assembly/parser/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ export class RepetitionNode extends Node {
replace(node: Node, replacement: Node): void {
this.expression = replacement;
}

children(): Node[] {
return [this.expression];
}
}

export class RangeRepetitionNode extends Node {
Expand Down

0 comments on commit 4dc21b0

Please sign in to comment.