module DhallishGrammar::UnionLiteral3
Public Instance Methods
to_node()
click to toggle source
# File lib/DhallishGrammar.rb, line 2551 def to_node() typed_labels = {} start.elements.each { |node| typed_labels[node.lb.text_value] = node.type.to_node() } tail.elements.each { |node| typed_labels[node.lb.text_value] = node.type.to_node() } Dhallish::Ast::UnionLiteral.new(typed_labels, lb.text_value, expr.to_node()) end