module DhallishGrammar::NonEmptyListLiteral3
Public Instance Methods
to_node()
click to toggle source
# File lib/DhallishGrammar.rb, line 1151 def to_node() list = [] list.append fst.to_node() tail.elements.each { |node| list.append node.exp.to_node() } if annot.respond_to? :type Dhallish::Ast::ListNode.new list, annot.type.to_node() else Dhallish::Ast::ListNode.new list, nil end end