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.1.3/core/ruby_vm.rbs, line 647
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.1.3/core/ruby_vm.rbs, line 655
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.1.3/core/ruby_vm.rbs, line 663
def inspect: () -> String
Returns debugging information about this location as a string.
() → Integer
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.1.3/core/ruby_vm.rbs, line 679
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.1.3/core/ruby_vm.rbs, line 671
def last_lineno: () -> Integer
The line number in the source code where this AST’s text ended.