Class: Transpec::AST::Builder

Inherits:
Parser::Builders::Default
  • Object
show all
Defined in:
lib/transpec/ast/builder.rb

Instance Method Summary collapse

Instance Method Details

#n(type, children, source_map) ⇒ Object



8
9
10
# File 'lib/transpec/ast/builder.rb', line 8

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

#string_value(token) ⇒ Object



12
13
14
# File 'lib/transpec/ast/builder.rb', line 12

def string_value(token)
  value(token)
end