lib/ruby_indexer/lib/ruby_indexer/entry.rb in ruby-lsp-0.12.3 vs lib/ruby_indexer/lib/ruby_indexer/entry.rb in ruby-lsp-0.12.4

- old
+ new

@@ -99,21 +99,26 @@ abstract! sig { returns(T::Array[Parameter]) } attr_reader :parameters + sig { returns(T.nilable(Entry::Namespace)) } + attr_reader :owner + sig do params( name: String, file_path: String, location: Prism::Location, comments: T::Array[String], parameters_node: T.nilable(Prism::ParametersNode), + owner: T.nilable(Entry::Namespace), ).void end - def initialize(name, file_path, location, comments, parameters_node) + def initialize(name, file_path, location, comments, parameters_node, owner) # rubocop:disable Metrics/ParameterLists super(name, file_path, location, comments) @parameters = T.let(list_params(parameters_node), T::Array[Parameter]) + @owner = owner end private sig { params(parameters_node: T.nilable(Prism::ParametersNode)).returns(T::Array[Parameter]) }