2016-05-23 16:01:16 +02:00
|
|
|
/// <reference path="fourslash.ts" />
|
|
|
|
|
|
|
|
// @Filename: library.ts
|
2018-07-03 04:25:27 +02:00
|
|
|
////[|export function foo() {}|]
|
|
|
|
////[|export function bar() {}|]
|
2016-05-23 16:01:16 +02:00
|
|
|
// @Filename: user.ts
|
2018-07-03 04:25:27 +02:00
|
|
|
////import {foo, [|bar as baz|]} from './library';
|
2016-05-23 16:01:16 +02:00
|
|
|
|
2018-07-03 04:25:27 +02:00
|
|
|
const [r0, r1, r2] = test.ranges();
|
|
|
|
verify.navigateTo(
|
|
|
|
{ pattern: "foo", expected: [{ name: "foo", kind: "function", kindModifiers: "export", range: r0 }] },
|
|
|
|
{ pattern: "bar", expected: [{ name: "bar", kind: "function", kindModifiers: "export", range: r1 }] },
|
|
|
|
{ pattern: "baz", expected: [{ name: "baz", kind: "alias", range: r2 }] },
|
|
|
|
);
|