instance method
Prism::Translation::Ripper#trailing_comma?
trailing_comma?(left, right)
lib/prism/translation/ripper.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/prism/translation/ripper.rb, line 3306
def trailing_comma?(left, right)
source.byteslice(left.end_offset...right.start_offset).include?(",")
end
Returns true if there is a comma between the two locations.