We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
RBS generation: 'type' is a keyword in RBS, renaming method parameter to '_type'
I believe that instead of renaming to _type you can wrap it in backticks.
_type
The text was updated successfully, but these errors were encountered:
Ah, so you can - thanks!
Something I noticed while experimenting, though, is that I can't get any parse errors to trigger when methods contain keywords even without backticks:
$ cat test.rbs ───────┬──────────────────────────────────────────────────────── │ File: test.rbs ───────┬──────────────────────────────────────────────────────── 1 │ class Foo 2 │ def def: (void: String, class: Integer) -> void 3 │ end ───────┴──────────────────────────────────────────────────────── $ rbs -I . method Foo def ::Foo#def defined_in: ::Foo implementation: ::Foo accessibility: public types: (void: ::String, class: ::Integer) -> void
I wonder if the parser has been made more permissive since I added this keyword check?
Sorry, something went wrong.
That's possible. I noticed the backtick usage in typeprof.
No branches or pull requests
I believe that instead of renaming to
_type
you can wrap it in backticks.The text was updated successfully, but these errors were encountered: