Merged
Conversation
Member
Author
This was referenced Mar 2, 2026
5d91b0f to
2c4dcbb
Compare
4f2c3c2 to
9cf59ac
Compare
2c4dcbb to
c043f4d
Compare
st0012
approved these changes
Mar 2, 2026
c043f4d to
adc0cd9
Compare
9cf59ac to
5ea4e22
Compare
alexcrocha
approved these changes
Mar 4, 2026
Member
Author
Merge activity
|
5ea4e22 to
ed9f3b7
Compare
Morriar
reviewed
Mar 4, 2026
| assert_declaration_exists!(context, "Foo#@@class_var"); | ||
| assert_declaration_exists!(context, "Foo#some_attr()"); | ||
| assert_declaration_exists!(context, "Foo::<Foo>#class_method()"); | ||
| assert_declaration_exists!(context, "Foo#initialize()"); |
Contributor
There was a problem hiding this comment.
The test covers every definition type (constants, ivars, class vars, attrs, methods) except alias new_name old_name (Definition::MethodAlias), whose callsite was also updated on line 512. Any chance we can add one more assertion here?
Suggested change
| assert_declaration_exists!(context, "Foo#initialize()"); | |
| assert_declaration_exists!(context, "Foo#initialize()"); | |
| assert_declaration_exists!(context, "Foo#bar()"); // alias bar initialize | |
| } |
With a matching alias bar initialize added to the module ALIAS body.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

When an alias is re-opened with the
classormodulekeyword, we need to ensure that we're adequately following it, so that we re-open the target and not the alias itself.For example:
This creates
Foo#bar()and notALIAS#bar().