We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a50530 commit c6561beCopy full SHA for c6561be
lib/prism/parse_result.rb
@@ -153,7 +153,7 @@ def trailing_comment(comment)
153
# Returns all comments that are associated with this location (both leading
154
# and trailing comments).
155
def comments
156
- (@leading_comments || []).concat(@trailing_comments || [])
+ [*@leading_comments, *@trailing_comments]
157
end
158
159
# Create a new location object with the given options.
0 commit comments