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

Lazy type inference for more accurate return types #138

Merged

Conversation

romalytvynenko
Copy link
Member

@romalytvynenko romalytvynenko commented May 1, 2023

Still naїve but useful way of analyzing types returned from controller methods.

Scramble will try to infer the type returned from a method for route, by analyzing all calls in the method body.

Also, type inference now works lazily, and code which is not taking a part in returned type is not analyzed. This saves time and makes analysis faster.

@romalytvynenko romalytvynenko force-pushed the 136-full-almost-controllers-method-return-type-analysis branch from e25a020 to ef888fc Compare May 2, 2023 10:32
@romalytvynenko romalytvynenko force-pushed the 136-full-almost-controllers-method-return-type-analysis branch from 78b0c99 to cccf623 Compare May 2, 2023 18:55
@romalytvynenko romalytvynenko force-pushed the 136-full-almost-controllers-method-return-type-analysis branch from bbc649c to 08b3d75 Compare May 3, 2023 14:27
@romalytvynenko romalytvynenko force-pushed the 136-full-almost-controllers-method-return-type-analysis branch from 6b01314 to 671bd32 Compare May 4, 2023 09:41
@romalytvynenko romalytvynenko force-pushed the 136-full-almost-controllers-method-return-type-analysis branch from 17b1b5e to e121c65 Compare May 4, 2023 10:33
@romalytvynenko romalytvynenko force-pushed the 136-full-almost-controllers-method-return-type-analysis branch from 502b9fb to a134e11 Compare May 21, 2023 11:49
@romalytvynenko romalytvynenko changed the title WIP: Full controllers method return type analysis Full controllers method return type analysis Jul 16, 2023
@romalytvynenko romalytvynenko changed the title Full controllers method return type analysis Lazy type inference for more accurate return types Jul 16, 2023
@romalytvynenko romalytvynenko merged commit bc955eb into main Jul 16, 2023
@romalytvynenko romalytvynenko deleted the 136-full-almost-controllers-method-return-type-analysis branch July 16, 2023 11:58
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.

None yet

1 participant