-
Notifications
You must be signed in to change notification settings - Fork 24
Translator to RBS only removes extend T::Helpers when needed
#751
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
| old_class_annotations = @class_annotations | ||
| @class_annotations = [] | ||
| old_type_members = @type_members | ||
| @type_members = [] | ||
| old_extend_t_helpers = @extend_t_helpers | ||
| @extend_t_helpers = [] | ||
| old_extend_t_generics = @extend_t_generics | ||
| @extend_t_generics = [] | ||
| old_seen_mixes_in_class_methods = @seen_mixes_in_class_methods | ||
| @seen_mixes_in_class_methods = false |
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.
nit: Personally, I find this style easier to follow:
| old_class_annotations = @class_annotations | |
| @class_annotations = [] | |
| old_type_members = @type_members | |
| @type_members = [] | |
| old_extend_t_helpers = @extend_t_helpers | |
| @extend_t_helpers = [] | |
| old_extend_t_generics = @extend_t_generics | |
| @extend_t_generics = [] | |
| old_seen_mixes_in_class_methods = @seen_mixes_in_class_methods | |
| @seen_mixes_in_class_methods = false | |
| old_class_annotations, @class_annotations = @class_annotations, [] | |
| old_type_members, @type_members = @type_members, [] | |
| old_extend_t_helpers, @extend_t_helpers = @extend_t_helpers, [] | |
| old_extend_t_generics, @extend_t_generics = @extend_t_generics, [] | |
| old_seen_mixes_in_class_methods, @seen_mixes_in_class_methods = @seen_mixes_in_class_methods, false |
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.
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.
Ah no worries then it's good to ship already 👍
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>

In this case, we shouldn't remove the
extend T::Helpersas we still need it formixes_in_class_methods: