Skip to content

Add assertions around method aliases, add fixes - #951

Closed
apiology wants to merge 56 commits into
castwide:masterfrom
apiology:method_alias_assertions
Closed

apiology wants to merge 56 commits into
castwide:masterfrom
apiology:method_alias_assertions

Conversation

@apiology

@apiology apiology commented May 22, 2025

Copy link
Copy Markdown
Contributor

Add an assertion to make sure we are resolving aliases.

It already found a minor issue (aliases to .new pins) in the new method alias code.

@apiology
apiology marked this pull request as ready for review June 1, 2025 16:26
@apiology
apiology marked this pull request as draft June 26, 2025 21:01
@apiology
apiology marked this pull request as ready for review June 28, 2025 16:07
Comment thread lib/solargraph/gem_pins.rb Outdated
Comment thread lib/solargraph/api_map.rb
end

candidate_pin.is_a?(Pin::Method) && candidate_pin.scope == alias_pin.scope
candidate_pin.is_a?(Pin::Method)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Various fixes found after adding assert

@apiology apiology changed the title Add assertions around method aliases Add assertions around method aliases, add fixes Jan 6, 2026
@apiology

apiology commented Mar 2, 2026

Copy link
Copy Markdown
Contributor Author

Merged into v0.59 release branch

@apiology apiology closed this Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant