File tree Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 1320
1320
"DiffItemKind" : " SpecialCaseDiffItem" ,
1321
1321
"Usr" : " s:5UIKit17UIApplicationMainys5Int32VAD_SpySpys4Int8VGGSgSSSgAJtF" ,
1322
1322
"SpecialCaseId" : " UIApplicationMain"
1323
- }
1323
+ },
1324
+ {
1325
+ "DiffItemKind" : " CommonDiffItem" ,
1326
+ "NodeKind" : " Function" ,
1327
+ "NodeAnnotation" : " Rename" ,
1328
+ "ChildIndex" : " 0" ,
1329
+ "LeftUsr" : " s:SlsSQ7ElementRpzrlE5index2of5IndexQzSgAB_tF" ,
1330
+ "LeftComment" : " index" ,
1331
+ "RightUsr" : " " ,
1332
+ "RightComment" : " firstIndex" ,
1333
+ "ModuleName" : " Swift"
1334
+ },
1324
1335
]
Original file line number Diff line number Diff line change
1
+ // REQUIRES: objc_interop
2
+ // RUN: %empty-directory(%t) && %target-swift-frontend -c -update-code -primary-file %s -F %S/mock-sdk -emit-migrated-file-path %t/stdlib_rename.swift.result -emit-remap-file-path %t/stdlib_rename.swift.remap -o /dev/null
3
+ // RUN: diff -u %S/stdlib_rename.swift.expected %t/stdlib_rename.swift.result
4
+
5
+ func test1( _ a: [ String ] , s: String ) {
6
+ _ = a. index ( of: s)
7
+ }
8
+ func test2( _ s: String , c: Character ) {
9
+ _ = s. index ( of: c)
10
+ }
Original file line number Diff line number Diff line change
1
+ // REQUIRES: objc_interop
2
+ // RUN: %empty-directory(%t) && %target-swift-frontend -c -update-code -primary-file %s -F %S/mock-sdk -emit-migrated-file-path %t/stdlib_rename.swift.result -emit-remap-file-path %t/stdlib_rename.swift.remap -o /dev/null
3
+ // RUN: diff -u %S/stdlib_rename.swift.expected %t/stdlib_rename.swift.result
4
+
5
+ func test1(_ a: [String], s: String) {
6
+ _ = a.firstIndex(of: s)
7
+ }
8
+ func test2(_ s: String, c: Character) {
9
+ _ = s.firstIndex(of: c)
10
+ }
You can’t perform that action at this time.
0 commit comments