instance method
Prism::Location#leading_comment
leading_comment(comment)
lib/prism/parse_result.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/prism/parse_result.rb, line 312
def leading_comment(comment)
leading_comments << comment
end
Attach a comment to the leading comments of this location.