mirror of
https://github.com/apple/swift.git
synced 2026-06-27 12:25:55 +02:00
12ff3794bc
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
39 lines
1.0 KiB
JSON
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"
|
|
}
|
|
]
|