Sha256: c122844e91e972a92026db30fa549ab36a242ee82097181f2f70d2a22b977552

Contents?: true

Size: 491 Bytes

Versions: 11

Compression:

Stored size: 491 Bytes

Contents

class Fancy
  class AST

    class RangeLiteral < Node
      attr_accessor :from, :to
      def initialize(line, from, to)
        super(line)
        @from = from
        @to = to
      end

      def bytecode(g)
        ms = MessageSend.new(@line,
                             Identifier.new(@line, "Range"),
                             Identifier.new(@line, "new:to:"),
                             MessageArgs.new(@line, @from, @to))
        ms.bytecode(g)
      end
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
fancy-0.10.0 boot/rbx-compiler/compiler/ast/range_literal.rb
fancy-0.9.0 boot/rbx-compiler/compiler/ast/range_literal.rb
fancy-0.8.0 boot/rbx-compiler/compiler/ast/range_literal.rb
fancy-0.7.0 boot/rbx-compiler/compiler/ast/range_literal.rb
fancy-0.6.0 boot/rbx-compiler/compiler/ast/range_literal.rb
fancy-0.5.0 boot/rbx-compiler/compiler/ast/range_literal.rb
fancy-0.4.0 boot/rbx-compiler/compiler/ast/range_literal.rb
fancy-0.3.3 boot/rbx-compiler/compiler/ast/range_literal.rb
fancy-0.3.2 boot/rbx-compiler/compiler/ast/range_literal.rb
fancy-0.3.1 boot/rbx-compiler/compiler/ast/range_literal.rb
fancy-0.3.0 boot/rbx-compiler/compiler/ast/range_literal.rb