类 SyntaxSuggest::GetParseErrors
公共类方法
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