Skip to content

Commit 3c29e9f

Browse files
author
Tin Trinh
committed
add trace on else
1 parent e046509 commit 3c29e9f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/tracer.ts

+4
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ function walk(node: any, visitor: Visitor) {
5353
walk(node.test, visitor.GetChildrenVisitor(node.kind + "-test"));
5454
}
5555

56+
if (node.alternate !== undefined && node.alternate !== null) {
57+
walk(node.alternate, visitor.GetChildrenVisitor(node.kind + "-alternate"));
58+
}
59+
5660
if (node.body !== undefined) {
5761
walk(node.body, visitor.GetChildrenVisitor(node.kind + "-body"));
5862
}

0 commit comments

Comments
 (0)