2016-04-06 01:16:54 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
2019-06-13 21:25:02 +02:00
|
|
|
////function f([|{[|{| "contextRangeIndex": 0 |}a|]}: {[|a|]}|]) {
|
2017-01-18 22:55:31 +01:00
|
|
|
//// f({[|a|]});
|
2016-04-06 01:16:54 +02:00
|
|
|
////}
|
2017-01-18 22:55:31 +01:00
|
|
|
|
2019-06-01 01:19:27 +02:00
|
|
|
const [r0Def, r0, r1, r2] = test.ranges();
|
2018-09-27 01:58:01 +02:00
|
|
|
// renames the local
|
|
|
|
verify.renameLocations([r0, r2], [{ range: r0, prefixText: "a: " }, { range: r2, prefixText: "a: " }]);
|
|
|
|
// renames the property
|
|
|
|
verify.renameLocations(r1, [{ range: r0, suffixText: ": a" }, r1, { range: r2, suffixText: ": a" }]);
|