Skip to content

[migrator] Add pass for API type changes #9084

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 2 commits into from
Apr 28, 2017

Conversation

nathawes
Copy link
Contributor

This handles optionality changes and type rewrites in function param/return types and constructor param types and failability.

Resolves rdar://problem/31766010

@nathawes nathawes requested a review from nkcsgexi April 27, 2017 23:09
@nathawes
Copy link
Contributor Author

@swift-ci please smoke test

Copy link
Contributor

@nkcsgexi nkcsgexi left a comment

Choose a reason for hiding this comment

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

Looks great! Minor comments inline.

return {};
// FIXME: overrides and conformances.
return DiffStore.getDiffItems(Buffer.str());
ArrayRef<APIDiffItem*> getDiffItems(ValueDecl *VD) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we inline this to getRelatedDiffItems so that it is clear getRelatedDiffItems is the only valid function users should call?

This handles optionality changes and type rewrites in function param and return types and constructor param and failability types.
Resolves rdar://problem/31766010
@nathawes nathawes force-pushed the migrator-api-optional-wrap branch from 162f8a8 to 8ad6aa4 Compare April 28, 2017 05:21
@nathawes
Copy link
Contributor Author

@swift-ci please smoke test

@nathawes
Copy link
Contributor Author

@swift-ci please smoke test

@nathawes
Copy link
Contributor Author

@swift-ci Please smoke test macOS

@nkcsgexi
Copy link
Contributor

Looks great! Ship it!

@nathawes nathawes merged commit d84f2d0 into swiftlang:master Apr 28, 2017
@nathawes nathawes deleted the migrator-api-optional-wrap branch April 28, 2017 16:51
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