Files
swift-mirror/test/Migrator/DoubleEditAPI.json
T
David Farler 12ff3794bc [Migrator] Don't run AST passes when in Swift 4 or later
AST passes assume that you are migrating from a version earlier
than Swift 4, where declaration references and type names may be
unconditionally renamed if their USRs match.

For example, this can happen for TypeMemberDiffItem entries where the
Objective-C USR is the same in Swift 3 and Swift 4, but the type is
spelled differently in Swift 4. A concrete example of this is:

`NSDocumentTypeDocumentAttribute` (Swift 3) ->
  `NSAttributedString.DocumentAttributeKey` (Swift 4).

Although this declaration is imported differently in Swift 4, its
Objective-C USR is `c:@NSDocumentTypeDocumentAttribute` for both.

rdar://problem/32604558
2017-06-23 14:04:07 -07:00

39 lines
1.0 KiB
JSON

[
{
"DiffItemKind": "TypeMemberDiffItem",
"Usr": "c:@E@FooComparisonResult@FooOrderedAscending",
"OldPrintedName": "FooOrderedAscending",
"NewPrintedName": "orderedAscending",
"NewTypeName": "FooComparisonResult"
},
{
"DiffItemKind": "TypeMemberDiffItem",
"Usr": "c:@SA@SomeItemSet",
"OldPrintedName": "SomeItemSet",
"NewPrintedName": "some",
"NewTypeName": "ItemSet"
},
{
"DiffItemKind": "CommonDiffItem",
"NodeKind": "Function",
"NodeAnnotation": "TypeRewritten",
"ChildIndex": "1",
"LeftUsr": "c:objc(pl)WillOverrideWithTypeChange(im)doThing:",
"LeftComment": "SomeItemSet",
"RightUsr": "",
"RightComment": "ItemSet.some",
"ModuleName": "bar"
},
{
"DiffItemKind": "CommonDiffItem",
"NodeKind": "Function",
"NodeAnnotation": "TypeRewritten",
"ChildIndex": "0",
"LeftUsr": "c:objc(pl)WillOverrideWithTypeChange(im)doThing:",
"LeftComment": "SomeItemSet",
"RightUsr": "",
"RightComment": "ItemSet.some",
"ModuleName": "bar"
}
]