Skip to content

[CSBindings] Refactor getPotentialBindings into inferBindingsFor + infer #33164

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 6 commits into from
Aug 13, 2020

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jul 28, 2020

Split getPotentialBindings in two:

  • inferBindingsFor should take responsibility for finding constraints
    to be evaluated as potential binding sources;
  • PotentialBindings::infer would process constraints provided by
    inferBindingsFor and "extract" bindings from them.

This is done to separate "sourcing" logic from "inference" and
make the former pluggable, so bindings could be computed based
on changes in constraint graph in the future.

xedin added 6 commits July 27, 2020 16:33
…+ `infer`

Split `getPotentialBindings` in two:

- `inferBindingsFor` should take responsibility for binding constraints
  to be evaluated as potential binding sources;
- `PotentialBindings::infer` would process constraints provided by
  `inferBindingsFor` and "extract" bindings from them.

This is done to separate "sourcing" logic from "inference" and
make the former pluggable, so bindings could be computed based
on changes in constraint graph in the future.
@xedin
Copy link
Contributor Author

xedin commented Jul 28, 2020

@swift-ci please test source compatibility

@xedin xedin requested review from hborla and DougGregor July 28, 2020 20:08
@xedin
Copy link
Contributor Author

xedin commented Jul 28, 2020

@swift-ci please test source compatibility release

@xedin
Copy link
Contributor Author

xedin commented Jul 28, 2020

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Aug 4, 2020

@swift-ci please test source compatibility release

@xedin
Copy link
Contributor Author

xedin commented Aug 12, 2020

@swift-ci please smoke test

Copy link
Member

@hborla hborla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@xedin xedin merged commit df4d89c into swiftlang:master Aug 13, 2020
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