2017-01-26 20:02:08 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
2016-04-08 00:41:42 +02:00
|
|
|
////interface MultiRobot {
|
|
|
|
//// name: string;
|
|
|
|
//// skills: {
|
2019-06-13 21:25:02 +02:00
|
|
|
//// [|[|{| "contextRangeIndex": 0 |}primary|]: string;|]
|
2016-04-08 00:41:42 +02:00
|
|
|
//// secondary: string;
|
|
|
|
//// };
|
|
|
|
////}
|
2019-06-13 21:25:02 +02:00
|
|
|
////let multiRobot: MultiRobot, [|[|{| "contextRangeIndex": 2 |}primary|]: string|], secondary: string, primaryA: string, secondaryA: string, i: number;
|
|
|
|
////for ([|{ skills: { [|{| "contextRangeIndex": 4 |}primary|]: primaryA, secondary: secondaryA } } = multiRobot|], i = 0; i < 1; i++) {
|
2018-09-27 01:58:01 +02:00
|
|
|
//// primaryA;
|
2016-04-08 00:41:42 +02:00
|
|
|
////}
|
2019-06-13 21:25:02 +02:00
|
|
|
////for ([|{ skills: { [|{| "contextRangeIndex": 6 |}primary|], secondary } } = multiRobot|], i = 0; i < 1; i++) {
|
2018-09-27 01:58:01 +02:00
|
|
|
//// [|primary|];
|
2016-04-08 00:41:42 +02:00
|
|
|
////}
|
2017-01-26 20:02:08 +01:00
|
|
|
|
2018-09-27 01:58:01 +02:00
|
|
|
verify.noErrors();
|
2017-01-26 20:02:08 +01:00
|
|
|
const ranges = test.ranges();
|
2019-06-03 22:22:14 +02:00
|
|
|
const [r0Def, r0, r1Def, r1, r2Def, r2, r3Def, r3, r4] = ranges;
|
2018-09-27 01:58:01 +02:00
|
|
|
verify.renameLocations([r0, r2], [r0, r2, { range: r3, suffixText: ": primary" }]);
|
|
|
|
verify.renameLocations([r1, r3, r4], [r1, { range: r3, prefixText: "primary: " }, r4]);
|