2016-10-25 03:10:05 +02:00
|
|
|
///<reference path="fourslash.ts" />
|
|
|
|
|
2018-07-03 04:25:27 +02:00
|
|
|
// @Filename: /a.ts
|
|
|
|
////
|
2016-10-25 03:10:05 +02:00
|
|
|
|
2018-07-03 04:25:27 +02:00
|
|
|
verify.navigateTo({ pattern: "", expected: [] });
|
2016-10-25 03:10:05 +02:00
|
|
|
edit.insert("/**\n * @typedef {Object} foo\n * @property {any} [obj]\n */\nexport default function foo() {\n}");
|
2018-07-03 04:25:27 +02:00
|
|
|
verify.navigateTo({
|
|
|
|
pattern: "foo",
|
|
|
|
expected: [
|
|
|
|
{
|
|
|
|
name: "foo",
|
|
|
|
kind: "function",
|
|
|
|
kindModifiers: "export",
|
|
|
|
range: { fileName: "/a.ts", pos: 58, end: 91 },
|
|
|
|
},
|
|
|
|
],
|
|
|
|
});
|