Sha256: 8f39045ddfd2b58565d3eabb3a03ffd851a6c370334f23fadfb58ebb6ef73048

Contents?: true

Size: 316 Bytes

Versions: 7

Compression:

Stored size: 316 Bytes

Contents

# frozen_string_literal: true

require 'opal/ast/node'
require 'parser/ruby25'

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

7 entries across 7 versions & 1 rubygems

Version Path
opal-1.0.5 lib/opal/ast/builder.rb
opal-1.0.4 lib/opal/ast/builder.rb
opal-1.0.3 lib/opal/ast/builder.rb
opal-1.0.2 lib/opal/ast/builder.rb
opal-1.0.1 lib/opal/ast/builder.rb
opal-1.0.0 lib/opal/ast/builder.rb
opal-1.0.0.beta1 lib/opal/ast/builder.rb