Skip to content

Commit a8307cf

Browse files
committed
reformat AST
1 parent 1f555b8 commit a8307cf

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

packages/core/lib/generator-builder/generatorBuilder.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,11 @@ export class Generator<Context, Names extends string, RuleDefs extends GenRuleMa
233233
PUSH_SOURCE: this.pushSource,
234234
POP_SOURCE: this.popSource,
235235
})(ast, this.getSafeContext(), arg);
236-
if (ast.loc) {
237-
this.catchup(ast.loc.end);
238-
}
236+
// TODO: You cannot close at end because scopes dont work like that for blankNodes like `[ ... ]`
237+
// That than gives errors since you don't close at the time you will insert something new.
238+
// if (ast.loc) {
239+
// this.catchup(ast.loc.end);
240+
// }
239241
if (ast.loc?.source) {
240242
this.popSource();
241243
}

0 commit comments

Comments
 (0)