2017-10-19 00:46:39 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
// @Filename: /a.ts
|
2019-06-13 21:25:02 +02:00
|
|
|
////[|export [|{| "isDefinition": true, "isWriteAccess": true, "contextRangeIndex": 0 |}default|] 1;|]
|
2017-10-19 00:46:39 +02:00
|
|
|
|
|
|
|
// @Filename: /b.ts
|
2019-06-13 21:25:02 +02:00
|
|
|
////[|import [|{| "isDefinition": true, "isWriteAccess": true, "contextRangeIndex": 2 |}a|] from "./a";|]
|
2017-10-19 00:46:39 +02:00
|
|
|
|
2019-06-06 01:26:04 +02:00
|
|
|
const [r0Def, r0, r1Def, r1] = test.ranges();
|
2017-10-19 00:46:39 +02:00
|
|
|
verify.referenceGroups(r0, [
|
|
|
|
{ definition: "(property) default: 1", ranges: [r0] },
|
|
|
|
{ definition: "import a", ranges: [r1] },
|
|
|
|
]);
|