Skip to content

[NFC] AST: Relocate some conformance lookup client methods from DeclContext to IterableDeclContext #31645

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 3 commits into from
May 18, 2020

Conversation

AnthonyLatsis
Copy link
Collaborator

Reduce the set of declaration nodes we can call these methods on by moving getLocalProtocols, getLocalConformances and takeConformanceDiagnostics to IterableDeclContext, and adding IterableDeclContext::getAsGenericContext() to make up for the casting complications.

}
SmallVector<Requirement, 4> FilteredRequirements;
filterGenericRequirements(
ConformanceExtension->getGenericRequirements(),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is simply getting rid of redundant (and now ambiguous) calls to getAsGenericContext()

@AnthonyLatsis AnthonyLatsis requested a review from CodaFi May 8, 2020 00:32
@AnthonyLatsis
Copy link
Collaborator Author

@swift-ci please smoke test

@AnthonyLatsis AnthonyLatsis changed the title [NFC] AST: Relocate some conformance lookup methods from DeclContext to IterableDeclContext [NFC] AST: Relocate some conformance lookup client methods from DeclContext to IterableDeclContext May 8, 2020
@AnthonyLatsis AnthonyLatsis force-pushed the relocate-to-iterabledc branch from 96c14f5 to bfe25fa Compare May 8, 2020 14:43
@AnthonyLatsis
Copy link
Collaborator Author

@swift-ci please smoke test

@AnthonyLatsis
Copy link
Collaborator Author

@CodaFi Ping

Copy link
Contributor

@CodaFi CodaFi left a comment

Choose a reason for hiding this comment

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

:shipit:

@AnthonyLatsis AnthonyLatsis merged commit 55447e6 into swiftlang:master May 18, 2020
@AnthonyLatsis AnthonyLatsis deleted the relocate-to-iterabledc branch May 18, 2020 19:25
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