Skip to content

[CS] Move getUnopenedTypeOfReference out of TypeChecker #30359

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

Merged
merged 1 commit into from
Mar 11, 2020

Conversation

CodaFi
Copy link
Contributor

@CodaFi CodaFi commented Mar 11, 2020

For some reason, the changed caller in CS wasn't actually going to use any of the types in the constraint system from the entrypoint it was calling. Switch over to using the constraint-system based entrypoint so we can pick up expression types consistently. Then, move the TypeChecker entrypoint onto ConstraintSystem to reduce the duplication here.

The remaining callers of buildCheckedRefExpr should probably be migrated to use a more principled method of building typechecked ASTs.

For some reason, the changed caller in CS wasn't actually going to use any of the types in the constraint system from the entrypoint it was calling. Switch over to using the constraint-system-based entrypoint so we can pick up expression types consistently. Then, move the TypeChecker entrypoint onto ConstraintSystem to reduce the duplication here.

The remaining callers of buildCheckedRefExpr should be migrated.
@CodaFi CodaFi requested a review from xedin March 11, 2020 18:16
@CodaFi
Copy link
Contributor Author

CodaFi commented Mar 11, 2020

@swift-ci please smoke test

@CodaFi
Copy link
Contributor Author

CodaFi commented Mar 11, 2020

⛵️

@CodaFi CodaFi merged commit d23082f into swiftlang:master Mar 11, 2020
@CodaFi CodaFi deleted the unopened-reference-semantics branch March 11, 2020 20:11
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.

2 participants