diff options
| author | yui-knk <spiketeika@gmail.com> | 2024-07-10 22:28:22 +0900 |
|---|---|---|
| committer | Yuichiro Kaneko <spiketeika@gmail.com> | 2024-07-23 12:36:00 +0900 |
| commit | f23485a8d693cb69fd7b84c1ab93cb4198ecfe4a (patch) | |
| tree | 12b99fc07f809edbd9ac32f3951a07f46e30a8cd /spec/ruby/core/array/shared | |
| parent | 5617fec1f81d0f05563b70fd04e9494896f6abc7 (diff) | |
[Feature #20624] Enhance `RubyVM::AbstractSyntaxTree::Node#locations`
This commit introduce `RubyVM::AbstractSyntaxTree::Node#locations` method
and `RubyVM::AbstractSyntaxTree::Location` class.
Ruby AST node will hold multiple locations information.
`RubyVM::AbstractSyntaxTree::Node#locations` provides a way to access
these locations information.
`RubyVM::AbstractSyntaxTree::Location` is a class which holds these location information:
* `#first_lineno`
* `#first_column`
* `#last_lineno`
* `#last_column`
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11226
Diffstat (limited to 'spec/ruby/core/array/shared')
0 files changed, 0 insertions, 0 deletions
