diff options
author | Stan Lo <stan001212@gmail.com> | 2023-10-04 13:13:27 +0100 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-10-04 12:13:33 +0000 |
commit | b43cc51dcad9859ea6c54cb4f03105c8511582de (patch) | |
tree | 9d7080c47f6c4cb260debaa0deb5d1352fcf6d2f /defs | |
parent | 94bcae1b2a2840c1a8031ef936870be693425551 (diff) | |
download | ruby-b43cc51dcad9859ea6c54cb4f03105c8511582de.tar.gz |
[ruby/irb] Clear all context usages in RubyLex
(https://github.com/ruby/irb/pull/684)
After this change, `RubyLex` will not interact with `Context` directly
in any way. This decoupling has a few benefits:
- It makes `RubyLex` easier to test as it no longer has a dependency on
`Context`. We can see this from the removal of `build_context` from
`test_ruby_lex.rb`.
- It will make `RubyLex` easier to understand as it will not be affected
by state changes in `Context` objects.
- It allows `RubyLex` to be used in places where `Context` is not available.
https://github.com/ruby/irb/commit/d5b262a076
Diffstat (limited to 'defs')
0 files changed, 0 insertions, 0 deletions