Sha256: 73c04b5cd546ff0b484a8af3ab190ebe90fa1a5779a3b44b4a12a377ab5867ff
Contents?: true
Size: 308 Bytes
Versions: 33
Compression:
Stored size: 308 Bytes
Contents
# frozen_string_literal: true 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
33 entries across 33 versions & 2 rubygems