The parser gem has a list of diagnostics with a hard-coded set of error messages. We create our own diagnostic class in order to set our own error messages.

Attributes
Read

This is the cached message coming from prism.

Class Methods

Initialize a new diagnostic with the given message and location.