Skip to content

[NFC] Name Binding -> Import Resolution #27998

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

Closed
wants to merge 4 commits into from

Conversation

CodaFi
Copy link
Contributor

@CodaFi CodaFi commented Oct 31, 2019

Rename this phase to more accurately reflect the bulk of the work that it actually accomplishes, and to remove one more overload of the phrase "name binding" in the compiler. I've left the historical references to it alone, but a bunch of out of date doc comments are all updated to reflect the current state of the world.

This patch also has another NFC component that resolves an ancient FIXME around the extra bit in the maps we have for operators and precedence groups. It seems unused so I've removed it and simplified the two-phase lookup logic.

Swift's NameBinding phase doesn't really perform name binding and hasn't for a really really long time.  Rename this file to provide some clarity.

Also rename performNameBinding to resolveImportsAndOperators
Remove the "private operator" bit from the map since import resolution wasn't actually using this.
A lot of places appear to mean "name lookup".  A few places meant "import resolution".
@CodaFi
Copy link
Contributor Author

CodaFi commented Oct 31, 2019

@swift-ci please smoke test

@CodaFi
Copy link
Contributor Author

CodaFi commented Oct 31, 2019

@swift-ci please test source compatibility

@CodaFi
Copy link
Contributor Author

CodaFi commented Oct 31, 2019

Urf, need LLDB patches

@CodaFi
Copy link
Contributor Author

CodaFi commented Oct 31, 2019

Jenkins died

@swift-ci please test source compatibility

@CodaFi
Copy link
Contributor Author

CodaFi commented Oct 31, 2019

swiftlang/llvm-project#80

@swift-ci please smoke test

@CodaFi
Copy link
Contributor Author

CodaFi commented Nov 2, 2019

swiftlang/llvm-project#80

@swift-ci please smoke test macOS platform

@CodaFi
Copy link
Contributor Author

CodaFi commented Nov 2, 2019

@swift-ci please test source compatibility

@CodaFi
Copy link
Contributor Author

CodaFi commented Nov 2, 2019

Going to approach this a different way. Leaving the LLDB patch up for the future though...

@CodaFi CodaFi closed this Nov 2, 2019
@CodaFi CodaFi deleted the free-trade branch December 22, 2019 03:00
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