Class
This represents an error that was encountered during parsing.
Attributes
Read
The level of this error.
Read
The message associated with this error.
Read
The type of error. This is an internal symbol that is used for communicating with translation layers. It is not meant to be public API.
Class Methods
dev
View on GitHub
# File tmp/rubies/ruby-master/lib/prism/parse_result.rb, line 813
def initialize(type, message, location, level)
@type = type
@message = message
@location = location
@level = level
end
Create a new error object with the given message and location.