class CodeTools::AST::Range

Attributes

finish[RW]
start[RW]

Public Class Methods

new(line, start, finish) click to toggle source
# File lib/rubinius/code/ast/literals.rb, line 298
def initialize(line, start, finish)
  @line = line
  @start = start
  @finish = finish
end

Public Instance Methods

bytecode(g) click to toggle source
# File lib/rubinius/code/ast/literals.rb, line 304
def bytecode(g)
  pos(g)

  g.push_cpath_top
  g.find_const :Range
  g.send :allocate, 0, true
  g.dup
  @start.bytecode(g)
  @finish.bytecode(g)
  g.send :initialize, 2, true
  g.pop
end
defined(g) click to toggle source
# File lib/rubinius/code/ast/literals.rb, line 317
def defined(g)
  g.push_literal "expression"
end
to_sexp() click to toggle source
# File lib/rubinius/code/ast/literals.rb, line 321
def to_sexp
  [:dot2, @start.to_sexp, @finish.to_sexp]
end