Skip to content

Support RBS class aliases#751

Merged
castwide merged 1 commit intocastwide:masterfrom
apiology:rbs_class_alias
Feb 26, 2025
Merged

Support RBS class aliases#751
castwide merged 1 commit intocastwide:masterfrom
apiology:rbs_class_alias

Conversation

@apiology
Copy link
Contributor

@apiology apiology commented Feb 22, 2025

This was preventing some core/stdlib constants from resolving correctly. e.g., "Mutex" is an alias of the class "Thread::Mutex"

This was preventing some stdlib constants from resolving correctly.
e.g., "Mutex" is an alias of the class "Thread::Mutex"
@apiology
Copy link
Contributor Author

This was the next one in line to get a clean typecheck of the sourcegraph codebase! Looks like there's some low hanging fruit in adding more RBS AST types - I may take a crack at that.

@@ -1,5 +1,7 @@
# frozen_string_literal: true

require 'rbs'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was so I could get RBS class information into the Solargraph LSP as I made these changes - I can throw this in a @!parse block or something if leaving it out was intentional.

@castwide
Copy link
Owner

LGTM, thanks!

@castwide castwide merged commit 877e410 into castwide:master Feb 26, 2025
8 checks passed
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.

2 participants