summaryrefslogtreecommitdiff
path: root/lib/prism/parse_result
diff options
context:
space:
mode:
authorKevin Newton <[email protected]>2024-04-19 14:53:39 -0400
committergit <[email protected]>2024-04-19 19:25:32 +0000
commit23be6599a20a0fd6bbf650816d163f9adfb82009 ()
tree2735cd0c7bca0e9f0c7f80f8f6d339d181adc625 /lib/prism/parse_result
parentcb711df36f36c847b035bbd5326c217eabc5c8b3 (diff)
[ruby/prism] Split parse result based on type
https://.com/ruby/prism/commit/17194e096d
-rw-r--r--lib/prism/parse_result/newlines.rb2
1 files changed, 0 insertions, 2 deletions
@@ -58,8 +58,6 @@ module Prism
# Walk the tree and mark nodes that are on a new line.
def mark_newlines!
- value = self.value
- raise "This method should only be called on a parse result that contains a node" unless Node === value
value.accept(Newlines.new(Array.new(1 + source.offsets.size, false))) # steep:ignore
end
end