Skip to content
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

Delete meta data from MethodType and Types::* #1201

Merged
merged 5 commits into from
Aug 9, 2024
Merged

Delete meta data from MethodType and Types::* #1201

merged 5 commits into from
Aug 9, 2024

Conversation

soutaro
Copy link
Owner

@soutaro soutaro commented Aug 8, 2024

This PR moves method_decls from MethodType to its one-level abstract data Shape::MethodOverload, which allows reusing MethodType instances in Types::Factory.

This PR also removes #location from Types::*. This is also to reuse type objects, and it resulted having only one instances for singleton types -- Any, Top, Boolean, ....

Move `#method_decls` to `MethodOverload` from `MethodType` so that `Factory` can reuse `MethodType` objects.
@soutaro soutaro enabled auto-merge August 9, 2024 04:22
@soutaro soutaro merged commit 9faa3d7 into master Aug 9, 2024
23 checks passed
@soutaro soutaro deleted the method-type branch August 9, 2024 04:26
@soutaro soutaro added the Released The PR is already included in a published release label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Released The PR is already included in a published release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant