class RuboCop::AST::ProcessedSource

def comment_index

def comment_index
  @comment_index ||= {}.tap do |hash|
    comments.each { |c| hash[c.location.line] = c }
  end
end