1. RubyVM::
  2. AbstractSyntaxTree::
  3. Location

class RubyVM::AbstractSyntaxTree::Location

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

This class is MRI specific.

Public Instance Methods

Source
# File ast.rb, line 304deffirst_columnPrimitive.ast_location_first_columnend

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

Source
# File ast.rb, line 296deffirst_linenoPrimitive.ast_location_first_linenoend

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

Source
# File ast.rb, line 328definspectPrimitive.ast_location_inspectend

Returns debugging information about this location as a string.

Source
# File ast.rb, line 320deflast_columnPrimitive.ast_location_last_columnend

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

Source
# File ast.rb, line 312deflast_linenoPrimitive.ast_location_last_linenoend

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