Class: Prism::InspectVisitor
- Inherits:
-
Object
- Object
- Prism::InspectVisitor
- Defined in:
- lib/papercraft/compiler/nodes.rb
Instance Method Summary collapse
Instance Method Details
#visit_tag_node(node) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/papercraft/compiler/nodes.rb', line 4 def visit_tag_node(node) commands << [inspect_node("TagNode", node), indent] # flags = [("newline" if node.newline?), ("static_literal" if node.static_literal?), ].compact # commands << ["├── flags: #{flags.empty? ? "∅" : flags.join(", ")}\n", indent] # commands << ["├── left:\n", indent] # commands << [node.left, "#{indent}│ "] # commands << ["├── right:\n", indent] # commands << [node.right, "#{indent}│ "] # commands << ["└── operator_loc: #{inspect_location(node.operator_loc)}\n", indent] end |