-
Notifications
You must be signed in to change notification settings - Fork 25
Add RBI <> RBS translation of class helpers and generics #733
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
2d3c468
to
2faf81e
Compare
Would it be possible to split this PR and have the framework for rewriting be separate? It will be much quicker to ship that part in isolation. |
Good point: #734 |
Rebased on top of #734. |
7d19cd5
to
287d56d
Compare
287d56d
to
94d57fb
Compare
test/spoom/cli/srb/tc_test.rb
Outdated
@@ -213,6 +213,7 @@ def test_display_errors_with_limit_and_code_but_no_count | |||
|
|||
def test_display_errors_from_path | |||
@project = new_project | |||
@project.bundle_install! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When pointing rbs to GH sources, I found that the these test projects weren't installing bundles correctly.
Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
This PR does a major rewrite of our current translator so we can also handle class annotations such as
@abstract
and generic signatures.Sadly, to support generic translation we need to point to an unreleased version of RBS at the moment as we need
RBS::Parser.parse_type_params
.I'd advise reviewing it commit by commit.