Skip to content

Requestify Class Ancestry Flags #26794

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
Aug 23, 2019
Merged

Requestify Class Ancestry Flags #26794

merged 1 commit into from
Aug 23, 2019

Conversation

CodaFi
Copy link
Contributor

@CodaFi CodaFi commented Aug 22, 2019

No description provided.

@CodaFi
Copy link
Contributor Author

CodaFi commented Aug 22, 2019

@swift-ci please smoke test

HasForcedEmittedMembers : 1,

/// Information about the class's ancestry.
Ancestry : 7,
Copy link
Contributor

Choose a reason for hiding this comment

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

Since these are used rather frequently, I would imagine making this request ExternallyCached would still be profitable. Or maybe not...


AncestryOptions ClassDecl::checkAncestry() const {
return AncestryOptions(evaluateOrDefault(getASTContext().evaluator,
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you have the request return AncestryOptions instead of AncestryFlags to avoid the coercion?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OptionSet doesn’t have an equality operator for good reason (see the file). I’m sure Sufficiently Magic Template Nonsense will let us do this eventually.

@CodaFi
Copy link
Contributor Author

CodaFi commented Aug 23, 2019

⛵️

@CodaFi CodaFi merged commit 2187fb2 into master Aug 23, 2019
@CodaFi CodaFi deleted the whats-old-is-new-again branch August 23, 2019 18: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