2016-04-07 19:47:57 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
2017-01-18 22:55:31 +01:00
|
|
|
////interface I {
|
2019-06-13 21:25:02 +02:00
|
|
|
//// [|[|{| "contextRangeIndex": 0 |}property1|]: number;|]
|
2017-01-18 22:55:31 +01:00
|
|
|
//// property2: string;
|
2016-04-07 19:47:57 +02:00
|
|
|
////}
|
2017-01-18 22:55:31 +01:00
|
|
|
////var elems: I[];
|
|
|
|
////
|
|
|
|
////var p2: number, property1: number;
|
2019-06-13 21:25:02 +02:00
|
|
|
////for ([|let { [|{| "contextRangeIndex": 2 |}property1|]: p2 } = elems[0]|]; p2 < 100; p2++) {
|
2017-01-18 22:55:31 +01:00
|
|
|
////}
|
2019-06-13 21:25:02 +02:00
|
|
|
////for ([|let { [|{| "contextRangeIndex": 4 |}property1|] } = elems[0]|]; p2 < 100; p2++) {
|
2017-01-18 22:55:31 +01:00
|
|
|
//// [|property1|] = p2;
|
2016-04-07 19:47:57 +02:00
|
|
|
////}
|
|
|
|
|
2019-06-01 01:19:27 +02:00
|
|
|
const [r0Def, r0, r1Def, r1, r2Def, r2, r3] = test.ranges();
|
2018-09-27 01:58:01 +02:00
|
|
|
verify.renameLocations([r0, r1], [r0, r1, { range: r2, suffixText: ": property1" }]);
|
|
|
|
verify.renameLocations([r2, r3], [{ range: r2, prefixText: "property1: " }, r3]);
|