From e99078c66d3a4e541fd50d946cec2581e96221d9 Mon Sep 17 00:00:00 2001 From: Andy Waite <13400+andyw8@users.noreply.github.com> Date: Wed, 24 Jul 2024 15:51:33 -0400 Subject: [PATCH] wip --- lib/ruby_indexer/lib/ruby_indexer/rbs_indexer.rb | 2 ++ lib/ruby_indexer/test/rbs_indexer_test.rb | 1 + 2 files changed, 3 insertions(+) diff --git a/lib/ruby_indexer/lib/ruby_indexer/rbs_indexer.rb b/lib/ruby_indexer/lib/ruby_indexer/rbs_indexer.rb index 713175bc89..4982df545c 100644 --- a/lib/ruby_indexer/lib/ruby_indexer/rbs_indexer.rb +++ b/lib/ruby_indexer/lib/ruby_indexer/rbs_indexer.rb @@ -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 diff --git a/lib/ruby_indexer/test/rbs_indexer_test.rb b/lib/ruby_indexer/test/rbs_indexer_test.rb index 8b3e1fc02f..40965fbc91 100644 --- a/lib/ruby_indexer/test/rbs_indexer_test.rb +++ b/lib/ruby_indexer/test/rbs_indexer_test.rb @@ -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)