yujinakayama/transpec

View on GitHub
lib/transpec/ast/builder.rb

Summary

Maintainability
A
0 mins
Test Coverage
# coding: utf-8

require 'transpec/ast/node'

module Transpec
  module AST
    class Builder < Parser::Builders::Default
      def n(type, children, source_map)
        Node.new(type, children, location: source_map)
      end

      def string_value(token)
        value(token)
      end
    end
  end
end