summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2023-01-13 17:02:24 +0900
committergit <svn-admin@ruby-lang.org>2023-01-13 08:25:09 +0000
commit94d6d6d93fa40b5f8dcdda6aa0e4b300ee61085c (patch)
treea4a2152fc2da21060e6ef76929c4af03f7284622 /tool
parent5b36fefc4e7d0bbaf714fd230c409193d544bcfc (diff)
[ruby/error_highlight] Identify which node in `Foo::Bar::Baz` causes a NameError
In Ruby 3.2 or later, a nested constant access like `Foo::Bar::Baz` is compiled to one instruction by the optimization https://github.com/ruby/ruby/pull/6187 We try to spot which sub-node caues a NameError in question based on the constant name. We will give up if the same constant name is accessed in a nested access (`Foo::Foo`). Fixes https://github.com/ruby/error_highlight/pull/31 https://github.com/ruby/error_highlight/commit/0a4db7da0a
Diffstat (limited to 'tool')
0 files changed, 0 insertions, 0 deletions