7 8 9 10 11
# File 'lib/rubycritic/analysers/helpers/parser.rb', line 7 def self.parse(content) ::Parser::CurrentRuby.parse(content) || AST::EmptyNode.new rescue ::Parser::SyntaxError AST::EmptyNode.new end