Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Prism::Translation::Parser::PrismDiagnostic.new
new(message, level, reason, location)
lib/prism/translation/parser.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/prism/translation/parser.rb, line 28
def initialize(message, level, reason, location)
@message = message
super(level, reason, {}, location, [])
end
Initialize a new diagnostic with the given message and location.
also in
4.0