Exception: Parser::SyntaxError
- 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
- #diagnostic ⇒ Parser::Diagnostic
source://parser//lib/parser/syntax_error.rb#14.
- #initialize(diagnostic) ⇒ SyntaxError constructor
source://parser//lib/parser/syntax_error.rb#16.
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
#diagnostic ⇒ Parser::Diagnostic
source://parser//lib/parser/syntax_error.rb#14
7178 | # File 'sorbet/rbi/parser@3.3.8.0.rbi', line 7178 def diagnostic; end |
© 2009–present Homebrew contributors
Licensed under the BSD 2-Clause License.
https://docs.brew.sh/rubydoc/Parser/SyntaxError.html