2017-01-23 22:23:26 +01:00
|
|
|
/// <reference path="fourslash.ts" />
|
|
|
|
|
|
|
|
// @Filename: a.ts
|
2019-06-13 21:25:02 +02:00
|
|
|
////[|export default function /*def*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}f|]() {}|]
|
2017-01-23 22:23:26 +01:00
|
|
|
|
|
|
|
// @Filename: b.ts
|
2019-06-13 21:25:02 +02:00
|
|
|
////[|import [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 2 |}g|] from "./a";|]
|
2017-10-19 00:49:46 +02:00
|
|
|
////[|/*ref*/g|]();
|
2017-01-23 22:23:26 +01:00
|
|
|
|
2017-02-16 22:10:03 +01:00
|
|
|
// @Filename: c.ts
|
|
|
|
////import { f } from "./a";
|
|
|
|
|
2019-06-06 00:01:34 +02:00
|
|
|
const [r0Def, r0, r1Def, r1, r2] = test.ranges();
|
2017-01-26 20:02:08 +01:00
|
|
|
verify.referenceGroups(r0, [
|
|
|
|
{ definition: "function f(): void", ranges: [r0] },
|
2017-10-26 02:50:11 +02:00
|
|
|
{ definition: "(alias) function g(): void\nimport g", ranges: [r1, r2] }
|
2017-01-26 20:02:08 +01:00
|
|
|
]);
|
2018-03-01 21:46:00 +01:00
|
|
|
verify.singleReferenceGroup("(alias) function g(): void\nimport g", [r1, r2]);
|
2017-03-01 17:45:41 +01:00
|
|
|
|
2017-01-23 22:23:26 +01:00
|
|
|
verify.goToDefinition("ref", "def");
|