Sha256: 49f8050b58cd59bb058b734a3261af57947daa6d3e86350e5ed911104d8cac6f

Contents?: true

Size: 316 Bytes

Versions: 11

Compression:

Stored size: 316 Bytes

Contents

# frozen_string_literal: true

require 'opal/ast/node'
require 'parser/ruby30'

module Opal
  module AST
    class Builder < ::Parser::Builders::Default
      self.emit_lambda = true

      def n(type, children, location)
        ::Opal::AST::Node.new(type, children, location: location)
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
opal-1.3.2 lib/opal/ast/builder.rb
opal-1.3.1 lib/opal/ast/builder.rb
opal-1.3.0 lib/opal/ast/builder.rb
opal-1.3.0.rc1 lib/opal/ast/builder.rb
opal-1.3.0.alpha1 lib/opal/ast/builder.rb
opal-1.2.0 lib/opal/ast/builder.rb
opal-1.2.0.beta1 lib/opal/ast/builder.rb
opal-1.1.1 lib/opal/ast/builder.rb
opal-1.1.1.rc1 lib/opal/ast/builder.rb
opal-1.1.0 lib/opal/ast/builder.rb
opal-1.1.0.rc1 lib/opal/ast/builder.rb