Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed Jul 24, 2024
1 parent 7fd9925 commit e99078c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ruby_indexer/lib/ruby_indexer/rbs_indexer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ def process_declaration(declaration, pathname)
when RBS::AST::Declarations::Constant
namespace_nesting = declaration.name.namespace.path.map(&:to_s)
handle_constant(declaration, namespace_nesting, pathname.to_s)
when RBS::AST::Members::Alias # NOTE: This is a signature alias, not a Ruby method alias
handle_alias(member, class_entry, file_path)
else # rubocop:disable Style/EmptyElse
# Other kinds not yet handled
end
Expand Down
1 change: 1 addition & 0 deletions lib/ruby_indexer/test/rbs_indexer_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ def test_signature_alias
# alias.
any_entries = @index["any?"]

binding.break
any_entry = any_entries.find { |entry| entry.owner.name == "Array" }

assert_kind_of(RubyIndexer::Entry::UnresolvedMethodAlias, any_entry)
Expand Down

0 comments on commit e99078c

Please sign in to comment.