Module: DhallishGrammar::TextLiteral6
- Defined in:
- lib/DhallishGrammar.rb
Instance Method Summary collapse
Instance Method Details
#to_node ⇒ Object
2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 |
# 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 |