new(name, file_path, location, comments)
def initialize(name, file_path, location, comments)
@name = name
@file_path = file_path
@comments = comments
@visibility = T.let(:public, Symbol)
@location = T.let(
if location.is_a?(Prism::Location)
Location.new(
location.start_line,
location.end_line,
location.start_column,
location.end_column,
)
else
location
end,
RubyIndexer::Location,
)
end