Method: RuboCop::Cop::Base#parse
- Defined in:
- lib/rubocop/cop/base.rb
permalink #parse(source, path = nil) ⇒ Object
There should be very limited reasons for a Cop to do it’s own parsing
300 301 302 |
# File 'lib/rubocop/cop/base.rb', line 300 def parse(source, path = nil) ProcessedSource.new(source, target_ruby_version, path, parser_engine: parser_engine) end |