Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed Oct 18, 2023
1 parent 7eaa826 commit 5d25fd2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/ruby_indexer/lib/ruby_indexer/entry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,21 +104,23 @@ class Method < Entry
sig { returns(T.nilable(String)) }
attr_reader :namespace

# rubocop:disable Metrics/ParameterLists
sig do
params(
name: String,
file_path: String,
location: Prism::Location,
comments: T::Array[String],
parameters_node: T.nilable(Prism::ParametersNode),
namespace: T.nilable(String) # nilable or not?
namespace: T.nilable(String), # nilable or not?
).void
end
def initialize(name, file_path, location, comments, parameters_node, namespace)
super(name, file_path, location, comments)
@parameters = T.let(list_params(parameters_node), T::Array[Parameter])
@namespace = T.let(namespace, T.nilable(String))
end
# rubocop:enable Metrics/ParameterLists

private

Expand Down

0 comments on commit 5d25fd2

Please sign in to comment.