-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[WIP]migrator: handle function hoist API changes. rdar://31234806 #9544
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
Conversation
@swift-ci please smoke test |
include/swift/IDE/APIDigesterData.h
Outdated
StringRef oldPrintedName; | ||
|
||
private: | ||
DeclNameViewer OldNameViwer; | ||
DeclNameViewer NewNameViwer; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: Viwer
if (auto RI = Item->removedIndex) | ||
IgnoredArgIndices.push_back(*RI); | ||
emitRenameLabelChanges(Arg, NewName, IgnoredArgIndices); | ||
auto *SelfExpr = AllArgs[0].ArgExp; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this assume SelfIndex is 0? Would an assert be worthwhile?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch, line 370 will return if SelfIndex is not 0. Current transformation mechanism may have limitation to handle non-zero selfindex. Fortunately, we don't see any of them in real frameworks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@swift-ci please smoke test |
@swift-ci please smoke test |
No description provided.