Skip to content

AST: simplify uses of ast_idx#505

Open
chqrlie wants to merge 1 commit intoc2lang:masterfrom
chqrlie:ast-idx
Open

AST: simplify uses of ast_idx#505
chqrlie wants to merge 1 commit intoc2lang:masterfrom
chqrlie:ast-idx

Conversation

@chqrlie
Copy link
Copy Markdown
Contributor

@chqrlie chqrlie commented Apr 17, 2026

  • make idx2ast and addAst type methods of globals
  • ensure globals.ast_list[0] is nil and simplify idx2ast()
  • remove redundant ast prefix in ast/module.c2 and
  • remove Decl.getASTIdx

* make `idx2ast` and `addAst` type methods of `globals`
* ensure `globals.ast_list[0]` is `nil` and simplify `idx2ast()`
* remove redundant `ast` prefix in ast/module.c2 and
* remove `Decl.getASTIdx`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant