summaryrefslogtreecommitdiff
path: root/node_dump.c
diff options
context:
space:
mode:
authorEarlopain <14981592+Earlopain@users.noreply.github.com>2025-01-21 10:20:08 +0100
committergit <svn-admin@ruby-lang.org>2025-02-25 15:44:56 +0000
commit790b3858e8cf076e320a5dd4c5b777a168ceb46e (patch)
tree5c69d1a8f26eaa49d10aea5dec024c961654329e /node_dump.c
parent2c3d2415d1e5be7e2ca5fa2981068b8584f17c6a (diff)
[ruby/prism] Add a custom builder class for the parser translator
I want to add new node types to the parser translator, for example `itblock`. The bulk of the work is already done by prism itself. In the `parser` builder, this would be a 5-line change at most but we don't control that here. Instead, we can add our own builder and either overwrite the few methods we need, or just inline the complete builder. I'm not sure yet which would be better. `rubocop-ast` uses its own builder for `parser`. For this to correctly work, it must explicitly choose to extend the prism builder and use it, same as it currently chooses to use a different parser when prism is used. I'd like to enforce that the builder for prism extends its custom one since it will lead to some pretty weird issues otherwise. But first, I'd like to change `rubocop-ast` to make use of this. https://github.com/ruby/prism/commit/b080e608a8
Diffstat (limited to 'node_dump.c')
0 files changed, 0 insertions, 0 deletions