Sha256: bbc736065ef22a0e320a0a069043ff3f10c9162d999b031d58b11f8394803374
Contents?: true
Size: 277 Bytes
Versions: 1
Compression:
Stored size: 277 Bytes
Contents
require 'parser/current' require 'rubycritic/analysers/helpers/ast_node' module RubyCritic module Parser def self.parse(content) ::Parser::CurrentRuby.parse(content) || AST::EmptyNode.new rescue ::Parser::SyntaxError AST::EmptyNode.new end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubycritic-2.9.3 | lib/rubycritic/analysers/helpers/parser.rb |