Skip to content

[NFC] Address review feedback from #27172 #27241

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

Conversation

CodaFi
Copy link
Contributor

@CodaFi CodaFi commented Sep 18, 2019

  • Clean up some errant formatting mistakes.
  • Collapse some code that was duplicating computing the interface type.

The dumper kicking off requests is going to require a more holistic patch.

- Clean up some errant formatting mistakes.
- Collapse some code that was duplicating computing the interface type.
@CodaFi CodaFi requested a review from slavapestov September 18, 2019 23:23
@CodaFi
Copy link
Contributor Author

CodaFi commented Sep 18, 2019

@swift-ci please smoke test and merge

Copy link
Contributor

@slavapestov slavapestov left a comment

Choose a reason for hiding this comment

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

Great!

// suffices. Otherwise we'll potentially try to validate incomplete
// requirements.
auto *proto = dyn_cast_or_null<ProtocolDecl>(
typealias->getDeclContext()->getAsDecl());
Copy link
Contributor

Choose a reason for hiding this comment

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

One more nitpick: This should be dyn_cast<ProtocolDecl>(typealias->getDeclContext())

Copy link
Collaborator

Choose a reason for hiding this comment

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

or typealias->getSelfProtocolDecl() :)

? extendedType
: ty->getDecl()->getDeclaredType();
if (auto ty = aliasDecl->getStructuralType()
->getAs<NominalOrBoundGenericNominalType>())
Copy link
Contributor

Choose a reason for hiding this comment

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

getNominalOrBoundGenericNominal()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That canonicalizes the type. I only want to desugar it.

@swift-ci swift-ci merged commit d77ed7a into swiftlang:master Sep 19, 2019
@CodaFi CodaFi deleted the well-i-should-have---run-clang-format branch September 19, 2019 05:32
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