class Prism::ParseWarning

This represents a warning that was encountered during parsing.

def deconstruct_keys(keys)

Implement the hash pattern matching interface for ParseWarning.
def deconstruct_keys(keys)
  { type: type, message: message, location: location, level: level }
end

def initialize(type, message, location, level)

Create a new warning object with the given message and location.
def initialize(type, message, location, level)
  @type = type
  @message = message
  @location = location
  @level = level
end

def inspect

Returns a string representation of this warning.
def inspect
  "#<Prism::ParseWarning @type=#{@type.inspect} @message=#{@message.inspect} @location=#{@location.inspect} @level=#{@level.inspect}>"
end