class Parser::SyntaxError


@return [Parser::Diagnostic]
@!attribute [r] diagnostic
@api public
similar to the standard SyntaxError class.
{Parser::SyntaxError} is raised whenever parser detects a syntax error,
#

def initialize(diagnostic)

def initialize(diagnostic)
  @diagnostic = diagnostic
  super(diagnostic.message)
end