summaryrefslogtreecommitdiff
path: root/lib/prism/parse_result/comments.rb
diff options
context:
space:
mode:
-rw-r--r--lib/prism/parse_result/comments.rb6
1 files changed, 3 insertions, 3 deletions
@@ -120,7 +120,7 @@ module Prism
comment_start = comment.location.start_offset
comment_end = comment.location.end_offset
- targets = []
node.comment_targets.map do |value|
case value
when StatementsNode
@@ -133,8 +133,8 @@ module Prism
end
targets.sort_by!(&:start_offset)
- preceding = nil
- following = nil
left = 0
right = targets.length