summaryrefslogtreecommitdiff
path: root/parser_node.h
diff options
context:
space:
mode:
authorKoichi ITO <koic.ito@gmail.com>2025-02-19 02:36:08 +0900
committergit <svn-admin@ruby-lang.org>2025-02-25 15:41:29 +0000
commit2c3d2415d1e5be7e2ca5fa2981068b8584f17c6a (patch)
tree5c60d7720ad560a4eef1ec44c21dda604063f147 /parser_node.h
parente0c0e061543431dade1103d54d8c390c9d09afac (diff)
[ruby/prism] Support custom parser in `Prism::Translation::Parser`
Follow-up to https://github.com/Shopify/ruby-lsp/pull/1849. This is an extension of `Prism::Translation::Parser` to implement https://github.com/Shopify/ruby-lsp/pull/1849. It is based on the comments in https://github.com/Shopify/ruby-lsp/pull/1849#pullrequestreview-1966020868, but also adds a default argument for delegation to `Parser::Base` super class. Using this API, https://github.com/rubocop/rubocop-ast/pull/359 has been implemented in RuboCop AST. As detailed in https://github.com/rubocop/rubocop-ast/pull/359, this change is expected to improve performance by 1.3x for some source code. Achieving a 1.3x speedup with such this simple modification is a significant improvement for Ruby LSP and its users. https://github.com/ruby/prism/commit/925725291c
Diffstat (limited to 'parser_node.h')
0 files changed, 0 insertions, 0 deletions