Skip to content

Commit 4dc21b0

Browse files
fix: repetition nodes were not allowing the walker to visit their child nodes
1 parent d4ca9c9 commit 4dc21b0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

assembly/parser/node.ts

+4
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ export class RepetitionNode extends Node {
152152
replace(node: Node, replacement: Node): void {
153153
this.expression = replacement;
154154
}
155+
156+
children(): Node[] {
157+
return [this.expression];
158+
}
155159
}
156160

157161
export class RangeRepetitionNode extends Node {

0 commit comments

Comments
 (0)