-
Notifications
You must be signed in to change notification settings - Fork 10.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ASTDumper] Dump DeclContext #79311
[ASTDumper] Dump DeclContext #79311
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a utility to use -dump-ast
results in the test suite. This gives stable "address" representation across multiple test runs.
Currently not used, but I will use this in near future.
@swift-ci Please smoke test |
3be104e
to
76737bf
Compare
* Include `DeclContext` of the node where possible * Add 'default-with-decl-contexts' dump style that dumps the dect context hierarchy in addition to the AST * Support `-dump-parse` with `-dump-ast-format json`
76737bf
to
71b2466
Compare
@swift-ci Please smoke test |
@swift-ci Please smoke test |
@swift-ci Please smoke test Linux |
@swift-ci Please smoke test Windows |
DeclContext
of the node where possible-dump-parse
with-dump-ast-format json
For example, for:
-dump-parse -dump-ast-format default-dc
emits:You can verify the each AST node references the correct
DeclContext
.