Skip to content

[NFC][Sema] Changing API to facilitate recording pontential holes recursively #37209

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
May 3, 2021

Conversation

LucianoPAlmeida
Copy link
Contributor

Just noted while looking up another issue that there are quite few points where we use the same visit pattern to record holes recursively, but since we changed recordPotentialHole some time ago to do that already, we could remove those visit patterns. One thing to improve clarity at call site I try to make recordPotentialHole back to take a TypeVarType and created a new recordAnyTypeVarAsPotentialHole(maybe we can think about a better name) that takes a type a visit recording for all type variable within the type.

So let me know if this makes sense :)

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

@LucianoPAlmeida LucianoPAlmeida requested a review from xedin May 2, 2021 02:22
@CodaFi
Copy link
Contributor

CodaFi commented May 2, 2021

Cool

@swift-ci test

@swift-ci
Copy link
Contributor

swift-ci commented May 2, 2021

Build failed
Swift Test Linux Platform
Git Sha - c069e86

Copy link
Contributor

@xedin xedin left a comment

Choose a reason for hiding this comment

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

Thank you!

@xedin
Copy link
Contributor

xedin commented May 3, 2021

@swift-ci please test Linux platform

@xedin xedin merged commit 21c161d into swiftlang:main May 3, 2021
@LucianoPAlmeida LucianoPAlmeida deleted the nfc-record-hole branch May 3, 2021 23:48
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.

4 participants