forked from vyperlang/vyper
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat[tool]: improvements to AST annotation (vyperlang#3829)
this commit enriches the annotated AST output so that links between nodes are explicit and consumers of the AST do not need to "guess" about relationships. - link to the type declaration node for user types - add `sha256sum` field for `Module` nodes - add fields on `Import*` nodes so that they can be linked directly to `Module` nodes (including `sha256sum`, so that changes in dependencies can be detected) - add improved type information (including parsed out metadata, like array length) consistently across all types. misc/refactors: - add `to_dict()` for type objects - removed some dead code - `compare_nodes` was only used in a couple of tests, and node equality could be used there instead. (node equality is not super well-defined, but we could revisit that later).
- Loading branch information
1 parent
cf37ec2
commit 9428196
Showing
20 changed files
with
1,448 additions
and
242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.