module DhallishGrammar::TextLiteral6
Public Instance Methods
to_node()
click to toggle source
# File lib/DhallishGrammar.rb, line 2014 def to_node() parts = [] tail.elements.each { |node| if node.respond_to?(:exp) parts.push node.exp.innerexp.to_node() elsif node.respond_to?(:esc) parts.push "\"" else parts.push node.any.text_value end } Dhallish::Ast::TextInterpolationNode.new parts end