From 4dc21b030b99263d5736901316da34e04fcde67e Mon Sep 17 00:00:00 2001 From: Colin E Date: Tue, 2 Mar 2021 22:19:36 +0000 Subject: [PATCH] fix: repetition nodes were not allowing the walker to visit their child nodes --- assembly/parser/node.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assembly/parser/node.ts b/assembly/parser/node.ts index 393b519..3505379 100644 --- a/assembly/parser/node.ts +++ b/assembly/parser/node.ts @@ -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 {