Skip to content

Commit 9908e9d

Browse files
committed
Fix transpilation
1 parent 37bb6c6 commit 9908e9d

10 files changed

Lines changed: 4892 additions & 81 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ python/package.json
3232
python/keys.json
3333
python/LICENSE.txt
3434
__pycache__
35+
rust/target
3536
.env
3637
*.swp
3738
.cache

build/rustAstWalk.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ function baseWalker<TState>(node: Node, state: TState, c: (child: Node, state: T
2929

3030
export function walkRecursive<TState>(node: Node, state: TState, visitors: Visitors<TState>) {
3131
const visit = (n: Node, s: TState) => {
32+
if (!isNode(n)) {
33+
return;
34+
}
3235
const handler = visitors[n.type];
3336
if (handler) {
3437
handler(n, s, visit);

0 commit comments

Comments
 (0)