RubyVM::AbstractSyntaxTree::Location
instances are created by RubyVM::AbstractSyntaxTree#locations.
This class is MRI specific.
Instance Methods
ast.rb
View on GitHub
# File tmp/rubies/ruby-master/ast.rb, line 305
def first_column
Primitive.ast_location_first_column
end
The column number in the source code where this AST’s text began.
ast.rb
View on GitHub
# File tmp/rubies/ruby-master/ast.rb, line 297
def first_lineno
Primitive.ast_location_first_lineno
end
The line number in the source code where this AST’s text began.
ast.rb
View on GitHub
# File tmp/rubies/ruby-master/ast.rb, line 329
def inspect
Primitive.ast_location_inspect
end
Returns debugging information about this location as a string.
ast.rb
View on GitHub
# File tmp/rubies/ruby-master/ast.rb, line 321
def last_column
Primitive.ast_location_last_column
end
The column number in the source code where this AST’s text ended.
ast.rb
View on GitHub
# File tmp/rubies/ruby-master/ast.rb, line 313
def last_lineno
Primitive.ast_location_last_lineno
end
The line number in the source code where this AST’s text ended.