2017-07-17 21:29:29 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
// @Filename: /a.ts
|
2019-06-13 21:25:02 +02:00
|
|
|
////[|class [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}C|] {}|]
|
|
|
|
////[|export const [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 2 |}D|] = [|C|];|]
|
2017-07-17 21:29:29 +02:00
|
|
|
|
|
|
|
// @Filename: /b.ts
|
2019-06-13 21:25:02 +02:00
|
|
|
////[|import { [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 5 |}D|] } from "./a";|]
|
2017-07-17 21:29:29 +02:00
|
|
|
|
2019-06-06 18:00:57 +02:00
|
|
|
const [C0Def, C0, D0Def, D0, C1, D1Def, D1] = test.ranges();
|
2017-07-17 21:29:29 +02:00
|
|
|
|
|
|
|
verify.singleReferenceGroup("class C", [C0, C1]);
|
|
|
|
|
|
|
|
const d0Group = { definition: "const D: typeof C", ranges: [D0] };
|
2017-10-26 02:50:11 +02:00
|
|
|
const d1Group = { definition: "(alias) const D: typeof C\nimport D", ranges: [D1] };
|
2017-07-17 21:29:29 +02:00
|
|
|
verify.referenceGroups(D0, [d0Group, d1Group]);
|
|
|
|
verify.referenceGroups(D1, [d1Group, d0Group]);
|