Spec-Zone.ru › Ruby 3.4
  1. SyntaxSuggest::
  2. GetParseErrors

class SyntaxSuggest::GetParseErrors

Родительский класс:
Object

Общедоступные методы класса

errors (source) Показать исходный код
# File lib/syntax_suggest/explain_syntax.rb, line 11
def self.errors(source)
  if SyntaxSuggest.use_prism_parser?
    Prism.parse(source).errors.map(&:message)
  else
    RipperErrors.new(source).call.errors
  end
end

Ruby Core © 1993–2025 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.

Spec-Zone.ru

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