forked from FuelLabs/sway
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pretty print
Vec<TyAstNode>
(FuelLabs#3761)
We have a command in VScode called "Sway: Show typed AST". When executed, it opens a 2nd window containing the typed AST for the currently open sway file. This used to work but stopped behaving as intended when the declaration engine was introduced. Instead of showing the types, it just shows the declaration IDs of the decl_engine. This PR just iterates over the `&[TyAstNode]` and looks up the types in decl_engine and pretty prints them in order to return the original functionality.
- Loading branch information
1 parent
b44d8ba
commit c289850
Showing
2 changed files
with
77 additions
and
5 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