class RubyVM::AbstractSyntaxTree::Location
RubyVM::AbstractSyntaxTree::Location instances are created by RubyVM::AbstractSyntaxTree::Node#locations.
This class is MRI specific.
Public Instance Methods
() → Integer
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/core/ruby_vm.rbs, line 607
def first_column: () -> Integer
The column number in the source code where this AST’s text began.
() → Integer
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/core/ruby_vm.rbs, line 615
def first_lineno: () -> Integer
The line number in the source code where this AST’s text began.
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/core/ruby_vm.rbs, line 623
def inspect: () -> String
Returns debugging information about this location as a string.
() → Integer
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/core/ruby_vm.rbs, line 639
def last_column: () -> Integer
The column number in the source code where this AST’s text ended.
() → Integer
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/core/ruby_vm.rbs, line 631
def last_lineno: () -> Integer
The line number in the source code where this AST’s text ended.