Sha256: 990128cf648af45e1a6dc292535299f9ecb0b54f155eed18b88756cf87a9f3fe

Contents?: true

Size: 316 Bytes

Versions: 10

Compression:

Stored size: 316 Bytes

Contents

# frozen_string_literal: true

require 'opal/ast/node'
require 'parser/ruby31'

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

10 entries across 10 versions & 1 rubygems

Version Path
opal-1.6.1 lib/opal/ast/builder.rb
opal-1.6.0 lib/opal/ast/builder.rb
opal-1.6.0.rc1 lib/opal/ast/builder.rb
opal-1.6.0.alpha1 lib/opal/ast/builder.rb
opal-1.5.1 lib/opal/ast/builder.rb
opal-1.5.0 lib/opal/ast/builder.rb
opal-1.5.0.rc1 lib/opal/ast/builder.rb
opal-1.4.1 lib/opal/ast/builder.rb
opal-1.4.0 lib/opal/ast/builder.rb
opal-1.4.0.alpha1 lib/opal/ast/builder.rb