Module: Rubycritic::Parser
- Defined in:
- lib/rubycritic/analysers/helpers/parser.rb
Class Method Summary collapse
Class Method Details
.parse(content) ⇒ Object
6 7 8 9 10 |
# File 'lib/rubycritic/analysers/helpers/parser.rb', line 6 def self.parse(content) ::Parser::CurrentRuby.parse(content) || AST::EmptyNode.new rescue ::Parser::SyntaxError AST::EmptyNode.new end |