2017-06-07 20:16:12 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
// @Filename: /a.ts
|
2019-06-13 21:25:02 +02:00
|
|
|
////export = [|class [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}A|] {
|
2017-06-07 20:16:12 +02:00
|
|
|
//// m() { [|A|]; }
|
2019-06-06 18:49:31 +02:00
|
|
|
////}|];
|
2017-06-07 20:16:12 +02:00
|
|
|
|
|
|
|
// @Filename: /b.ts
|
2019-06-13 21:25:02 +02:00
|
|
|
////[|import [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 3 |}A|] = require("./a");|]
|
2017-06-07 20:16:12 +02:00
|
|
|
////[|A|];
|
|
|
|
|
2019-06-06 18:49:31 +02:00
|
|
|
const [r0Def, r0, r1, r2Def, r2, r3] = test.ranges();
|
2017-06-07 20:16:12 +02:00
|
|
|
const defs = { definition: "(local class) A", ranges: [r0, r1] };
|
2018-04-24 00:24:31 +02:00
|
|
|
const imports = { definition: '(alias) (local class) A\nimport A = require("./a")', ranges: [r2, r3] };
|
2017-06-07 20:16:12 +02:00
|
|
|
verify.referenceGroups([r0, r1], [defs, imports]);
|
|
|
|
verify.referenceGroups([r2, r3], [imports, defs]);
|