class Prism::ParseWarning
This represents a warning that was encountered during parsing.
Attributes
level
[R]
Symbol
The level of this warning.
A Location object representing the location of this warning in the source.
message
[R]
String
The message associated with this warning.
type
[R]
Symbol
The type of warning. This is an internal symbol that is used for communicating with translation layers. It is not meant to be public API.
Public Class Methods
(Symbol type, String message, Location location, Symbol level) → void
Source
# File lib/prism/parse_result.rb, line 878 def initialize(type, message, location, level) @type = type @message = message @location = location @level = level end
Create a new warning object with the given message and location.