2017-05-10 20:40:15 +02:00
|
|
|
/// <reference path="fourslash.ts" />
|
|
|
|
|
|
|
|
// @Filename: /a.ts
|
2019-06-13 21:25:02 +02:00
|
|
|
////[|export function [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}foo|](): void {}|]
|
2017-05-10 20:40:15 +02:00
|
|
|
|
|
|
|
// @Filename: /b.ts
|
2019-06-13 21:25:02 +02:00
|
|
|
////[|import { [|{| "contextRangeIndex": 2 |}foo|] as [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 2 |}oof|] } from "./a";|]
|
2017-05-10 20:40:15 +02:00
|
|
|
|
|
|
|
verify.noErrors();
|
2019-06-05 21:38:15 +02:00
|
|
|
const [r0Def, r0, r1Def, r1, r2] = test.ranges();
|
2017-05-10 20:40:15 +02:00
|
|
|
verify.referenceGroups(r0, [
|
|
|
|
{ definition: "function foo(): void", ranges: [r0, r1] },
|
2017-10-26 02:50:11 +02:00
|
|
|
{ definition: "(alias) function oof(): void\nimport oof", ranges: [r2] }
|
2017-05-10 20:40:15 +02:00
|
|
|
]);
|