summaryrefslogtreecommitdiff
path: root/prism/templates/lib/prism/inspect_visitor.rb.erb
diff options
context:
space:
mode:
Diffstat (limited to 'prism/templates/lib/prism/inspect_visitor.rb.erb')
-rw-r--r--prism/templates/lib/prism/inspect_visitor.rb.erb7
1 files changed, 1 insertions, 6 deletions
diff --git a/prism/templates/lib/prism/inspect_visitor.rb.erb b/prism/templates/lib/prism/inspect_visitor.rb.erb
index 8e7902f0f1..9328da636b 100644
--- a/prism/templates/lib/prism/inspect_visitor.rb.erb
+++ b/prism/templates/lib/prism/inspect_visitor.rb.erb
@@ -116,13 +116,8 @@ module Prism
# Compose a header for the given node.
def inspect_node(name, node)
- result = +"@ #{name} ("
-
location = node.location
- result << "location: (#{location.start_line},#{location.start_column})-(#{location.end_line},#{location.end_column})"
- result << ", newline: true" if node.newline?
-
- result << ")\n"
+ "@ #{name} (location: (#{location.start_line},#{location.start_column})-(#{location.end_line},#{location.end_column}))\n"
end
# Compose a string representing the given inner location field.