-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Decls debug rendering is a bit noisey, especially when most of the fields are empty. This change updates the debug implementation to only print out the decls fields and to print it all as one big list. The motivation is that the Decls object is usually created from a Program which itself is simply a list of declarations. The local_ids fields are only there to make lookup faster and contain no more info than the decls themselves. One can separate the types of decls visually because they have some prefix (eg `trait`, `fn`) so printing them as on big heterogenuous list loses no information compared to printing every field separately. The end result is going from ```decls(222, {trait Foo}, [],[],[],[],{Foo},{})``` to ```decls[trait Foo]```
- Loading branch information
Showing
12 changed files
with
243 additions
and
228 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
Oops, something went wrong.