mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Without source location, TapExpr could stop IDE from collecting parameters while perform refactoring. rdar://47835267
10 lines
317 B
Swift
10 lines
317 B
Swift
func test(x: Int, y: Int) {
|
|
let z = "x = \(x), y = \(y)"
|
|
print(z)
|
|
}
|
|
|
|
// RUN: %target-swift-ide-test -range -pos=2:1 -end-pos 4:1 -source-filename %s | %FileCheck %s -check-prefix=CHECK-PARAMS
|
|
|
|
// CHECK-PARAMS: <Referenced>x</Referenced><Type>Int</Type>
|
|
// CHECK-PARAMS: <Referenced>y</Referenced><Type>Int</Type>
|