1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test
eileencodes 3391c51eff Add node_id_for_backtrace_location function
We want to use error highlight with eval'd code, specifically ERB
templates. We're able to recover the generated code for eval'd templates
and can get a parse tree for the ERB generated code, but we don't have a
way to get the node id from the backtrace location. So we can't pass the
right node into error highlight.

This patch gives us an API to get the node id from the backtrace
location so we can find the node in the AST.

Error Highlight PR: https://github.com/ruby/error_highlight/pull/26

Co-authored-by: Aaron Patterson <tenderlove@ruby-lang.org>
2022-10-31 13:39:56 +09:00
..
-ext- Unmark Internal IV test as pending 2022-10-20 11:59:34 -07:00
base64
benchmark
bigdecimal
cgi
coverage Change a tab to spaces 2022-10-17 11:30:07 +09:00
csv
date
did_you_mean
digest
drb
dtrace
erb
error_highlight
etc
excludes
fiber Avoid missed wakeup with fiber scheduler and Fiber.blocking. (#6588) 2022-10-20 13:38:52 +13:00
fiddle [ruby/fiddle] Add support for linker script on Linux 2022-10-18 17:21:45 +09:00
fileutils
fixtures/fake_sorted_set_gem
io
irb [ruby/irb] Do not make non-existent XDG directory on start 2022-10-28 09:36:28 +00:00
json
lib
logger
mkmf
monitor
net
nkf
objspace push dummy frame for loading process 2022-10-20 17:38:28 +09:00
open-uri Add :ssl_min_version and :ssl_max_version options 2022-10-12 10:36:51 +09:00
openssl [ruby/openssl] add BN#mod_sqrt 2022-10-17 23:38:34 +09:00
optparse [ruby/optparse] Add tests for load(into:) 2022-10-29 13:47:23 +00:00
ostruct
pathname
psych
racc
rdoc
readline
reline
resolv
rinda
ripper
ruby Add node_id_for_backtrace_location function 2022-10-31 13:39:56 +09:00
rubygems [rubygems/rubygems] Bump rb-sys in /test/rubygems/test_gem_ext_cargo_builder/custom_name 2022-10-25 06:56:59 +00:00
socket
stringio
strscan
syslog
uri [ruby/uri] Fix splitting relative URI 2022-10-13 16:24:53 +09:00
win32ole
yaml
zlib
runner.rb
test_abbrev.rb
test_delegate.rb [ruby/delegate] Fix DelegateClass block "method redefined" warning 2022-10-15 00:08:44 +09:00
test_extlibs.rb
test_find.rb
test_forwardable.rb
test_getoptlong.rb
test_ipaddr.rb
test_mutex_m.rb
test_observer.rb
test_open3.rb
test_pp.rb [ruby/pp] [Feature #19045] Add support Data#pretty_print 2022-10-14 21:31:24 +09:00
test_prettyprint.rb
test_pstore.rb
test_pty.rb
test_rbconfig.rb
test_securerandom.rb
test_set.rb
test_shellwords.rb
test_singleton.rb
test_sorted_set.rb
test_syslog.rb
test_tempfile.rb
test_time.rb
test_timeout.rb
test_tmpdir.rb [ruby/tmpdir] Warnings should contain the environment variable name 2022-10-27 03:12:00 +00:00
test_trick.rb
test_tsort.rb
test_unicode_normalize.rb
test_weakref.rb