class SyntaxSuggest::GetParseErrors

Public Class Methods

errors(source) click to toggle source
# File 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