Spec-Zone.ru › Homebrew

Exception: Parser::SyntaxError

Inherits:
StandardError
  • Object
  • StandardError
  • Parser::SyntaxError
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

  • #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

Returns:

  • (Parser::Diagnostic)


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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API