Files
swift-mirror/test/IDE/range_info_string_interpolation.swift
Xi Ge 5617e4a793 AST: TapExpr should return sub-expression's source locations if set.
Without source location, TapExpr could stop IDE from collecting parameters
while perform refactoring.

rdar://47835267
2019-02-07 16:46:34 -08:00

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>