TypeScript/tests/cases/fourslash/renameImportAndExport.ts

9 lines
340 B
TypeScript
Raw Normal View History

/// <reference path='fourslash.ts' />
2019-06-13 21:25:02 +02:00
////[|import [|{| "contextRangeIndex": 0 |}a|] from "module";|]
////[|export { [|{| "contextRangeIndex": 2 |}a|] };|]
2019-05-31 23:40:59 +02:00
const [r0Def, r0, r1Def, r1] = test.ranges();
verify.renameLocations(r0, [r0, { range: r1, suffixText: " as a" }]);
verify.renameLocations(r1, [{ range: r1, prefixText: "a as " }]);