Method: RuboCop::Cop::Base#parse

Defined in:
lib/rubocop/cop/base.rb

#parse(source, path = nil) ⇒ Object

There should be very limited reasons for a Cop to do it’s own parsing

[View source]

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