Exception: Parser::SyntaxError

Inherits:
StandardError
  • Object
show all
Defined in:
sorbet/rbi/parser@3.3.8.0.rbi

Overview

SyntaxError is raised whenever parser detects a syntax error, similar to the standard SyntaxError class.

source://parser//lib/parser/syntax_error.rb#13

Instance Method Summary collapse

Constructor Details

#initialize(diagnostic) ⇒ SyntaxError

source://parser//lib/parser/syntax_error.rb#16



7172
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 7172

def initialize(diagnostic); end

Instance Method Details

#diagnosticParser::Diagnostic

source://parser//lib/parser/syntax_error.rb#14

Returns:



7178
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 7178

def diagnostic; end