Skip to content

[ConstraintSystem] Track AST depth information directly #22082

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 2 commits into from
Jan 24, 2019

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jan 24, 2019

Instead of storing information about expression depths in the
solver state (which gets recomputed for salvage) let's track
it directly in constraint system, which also gives solver
access to it when needed e.g. for fixes.

xedin added 2 commits January 23, 2019 18:21
Which is very useful for the solver because otherwise it'd have to
compute and store this information twice.
Instead of storing information about expression depths in the
solver state (which gets recomputed for salvage) let's track
it directly in constraint system, which also gives solver
access to it when needed e.g. for fixes.
@xedin xedin requested a review from DougGregor January 24, 2019 04:22
@xedin
Copy link
Contributor Author

xedin commented Jan 24, 2019

@DougGregor I need to this information available for upcoming partial application diagnostics, because in a lot of cases member resolution happens in CSGen.

@xedin
Copy link
Contributor Author

xedin commented Jan 24, 2019

@swift-ci please smoke test

@xedin
Copy link
Contributor Author

xedin commented Jan 24, 2019

@swift-ci please test source compatibility

@xedin
Copy link
Contributor Author

xedin commented Jan 24, 2019

It also makes more sense to keep this information in constraint system itself instead of threading it through solver state.

@xedin
Copy link
Contributor Author

xedin commented Jan 24, 2019

Source compat suite failing with vapor/routing UPASS which I opened a separate PR to address.

@xedin
Copy link
Contributor Author

xedin commented Jan 24, 2019

@swift-ci please test source compatibility

@xedin xedin merged commit fe9376d into swiftlang:master Jan 24, 2019
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.

1 participant