class RubyVM::AbstractSyntaxTree::Location

RubyVM::AbstractSyntaxTree::Location instances are created by RubyVM::AbstractSyntaxTree::Node#locations.

This class is MRI specific.

Public Instance Methods

The column number in the source code where this AST’s text began.

# File ast.rb, line 306
def first_column
  Primitive.ast_location_first_column
end

The line number in the source code where this AST’s text began.

# File ast.rb, line 298
def first_lineno
  Primitive.ast_location_first_lineno
end

Returns debugging information about this location as a string.

# File ast.rb, line 330
def inspect
  Primitive.ast_location_inspect
end

The column number in the source code where this AST’s text ended.

# File ast.rb, line 322
def last_column
  Primitive.ast_location_last_column
end

The line number in the source code where this AST’s text ended.

# File ast.rb, line 314
def last_lineno
  Primitive.ast_location_last_lineno
end