protocompile
protocompile copied to clipboard
Add a debug feature to record the callsite of calls to construct new AST nodes
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.