class RubyIndexer::Collector
def initialize(index, parse_result, file_path)
def initialize(index, parse_result, file_path) @index = index @file_path = file_path @stack = T.let([], T::Array[String]) @comments_by_line = T.let( parse_result.comments.to_h do |c| [c.location.start_line, c] end, T::Hash[Integer, Prism::Comment], ) @queue = T.let([], T::Array[Object]) @current_owner = T.let(nil, T.nilable(Entry::Namespace)) super() end