module DhallishGrammar::ProjSelExpression4
Public Instance Methods
to_node()
click to toggle source
# File lib/DhallishGrammar.rb, line 4813 def to_node() tail.elements.reduce(pe.to_node()) { |tree, node| if node.sel.respond_to? :a Dhallish::Ast::RecordUnionSelector.new tree, node.sel.a.text_value else Dhallish::Ast::RecordProjection.new tree, node.sel.b.to_list() end } end