17 lines
651 B
TypeScript
17 lines
651 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
// @Filename: a.ts
|
|
////export var [|{| "isWriteAccess": true, "isDefinition": true |}a|];
|
|
|
|
// @Filename: b.ts
|
|
////import { [|{| "isWriteAccess": true, "isDefinition": true |}a|] } from './a';
|
|
////export { [|{| "isWriteAccess": true, "isDefinition": true |}a|] };
|
|
|
|
const ranges = test.ranges();
|
|
const [r0, r1, r2] = ranges;
|
|
const vars = { definition: "var a: any", ranges: [r0] };
|
|
const imports = { definition: "import a", ranges: [r1, r2] };
|
|
verify.referenceGroups(r0, [vars, imports]);
|
|
verify.referenceGroups(r1, [imports, vars]);
|
|
verify.referenceGroups(r2, [imports, vars]);
|
|
verify.rangesAreRenameLocations();
|