Skip to content

Commit

Permalink
Starting tree walkers cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-lischke committed Jan 4, 2025
1 parent c8b7176 commit 980d782
Show file tree
Hide file tree
Showing 8 changed files with 661 additions and 15,944 deletions.
2,431 changes: 0 additions & 2,431 deletions src/tree-walkers/ATNBuilder.java

This file was deleted.

1,705 changes: 653 additions & 1,052 deletions src/tree-walkers/ATNBuilder.ts

Large diffs are not rendered by default.

2,091 changes: 0 additions & 2,091 deletions src/tree-walkers/BlockSetTransformer.java

This file was deleted.

4 changes: 0 additions & 4 deletions src/tree-walkers/BlockSetTransformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ export class BlockSetTransformer extends TreeRewriter {
];

private currentRuleName?: string;
private currentAlt: GrammarAST;
private g: Grammar;

private adaptor = new CommonTreeAdaptor();
Expand Down Expand Up @@ -457,9 +456,6 @@ export class BlockSetTransformer extends TreeRewriter {
_first_0 = ALT6;
}

if (this.state.backtracking === 1) {
this.currentAlt = (retval.start as GrammarAST);
}
if (this.state.backtracking === 1) {
retval.tree = _first_0 ?? undefined;
if (retval.tree?.getParent()?.isNil()) {
Expand Down
Loading

0 comments on commit 980d782

Please sign in to comment.