class RuboCop::AST::ProcessedSource

def last_token_index(range_or_node)

def last_token_index(range_or_node)
  end_pos = source_range(range_or_node).end_pos
  sorted_tokens.bsearch_index { |token| token.end_pos >= end_pos }
end