Skip to content

Conversation

mcy
Copy link
Member

@mcy mcy commented Dec 17, 2024

This is enabled by setting ast.Nodes.EnableTracing. It's implemented by recording the arena address of each node in a map, and having ast nodes call up that map as needed.

As future work, we could unify this and the tracing support in the report package, and introduce some way to annotate call frames with more debugging information.

@mcy mcy changed the title Add a debug feature to record the callsite of calls to construct new AST nodes. Add a debug feature to record the callsite of calls to construct new AST nodes Dec 17, 2024
@mcy mcy requested a review from jhump December 17, 2024 20:09
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.

2 participants