class method
Prism::Translation::Parser::PrismDiagnostic.new
new(message, level, reason, location)
lib/prism/translation/parser.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/prism/translation/parser.rb, line 41
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
3.4