Exception: Parser::SyntaxError

Inherits:
StandardError
  • Object
show all
Defined in:
sorbet/rbi/parser@3.3.7.4.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



7166
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 7166

def initialize(diagnostic); end

Instance Method Details

#diagnosticParser::Diagnostic

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

Returns:



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

def diagnostic; end