2020-01-22 14:13:04 +01:00
|
|
|
/// <reference path="fourslash.ts"/>
|
|
|
|
|
|
|
|
//// export default function () {}
|
2020-06-26 18:35:27 +02:00
|
|
|
//// export default function () {
|
|
|
|
//// return class Foo {
|
|
|
|
//// }
|
|
|
|
//// }
|
|
|
|
////
|
2020-01-22 14:13:04 +01:00
|
|
|
//// export default () => ""
|
2020-06-26 18:35:27 +02:00
|
|
|
//// export default () => {
|
|
|
|
//// return class Foo {
|
|
|
|
//// }
|
|
|
|
//// }
|
|
|
|
////
|
|
|
|
//// export default function f1() {}
|
|
|
|
//// export default function f2() {
|
|
|
|
//// return class Foo {
|
|
|
|
//// }
|
|
|
|
//// }
|
|
|
|
////
|
|
|
|
//// const abc = 12;
|
2020-01-22 14:13:04 +01:00
|
|
|
//// export default abc;
|
|
|
|
//// export default class AB {}
|
2020-05-12 16:26:31 +02:00
|
|
|
//// export default {
|
|
|
|
//// a: 1,
|
|
|
|
//// b: 1,
|
|
|
|
//// c: {
|
|
|
|
//// d: 1
|
|
|
|
//// }
|
|
|
|
//// }
|
2020-09-18 22:06:56 +02:00
|
|
|
////
|
|
|
|
//// function foo(props: { x: number; y: number }) {}
|
|
|
|
//// export default foo({ x: 1, y: 1 });
|
2020-01-22 14:13:04 +01:00
|
|
|
|
|
|
|
verify.navigationTree({
|
|
|
|
"text": '"navigationItemsExportDefaultExpression"',
|
|
|
|
"kind": "module",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "default",
|
|
|
|
"kind": "function",
|
|
|
|
"kindModifiers": "export"
|
|
|
|
},
|
2020-06-26 18:35:27 +02:00
|
|
|
{
|
|
|
|
"text": "default",
|
|
|
|
"kind": "function",
|
|
|
|
"kindModifiers": "export",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "Foo",
|
|
|
|
"kind": "class"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2020-01-22 14:13:04 +01:00
|
|
|
{
|
|
|
|
"text": "default",
|
|
|
|
"kind": "function",
|
|
|
|
"kindModifiers": "export"
|
|
|
|
},
|
2020-06-26 18:35:27 +02:00
|
|
|
{
|
|
|
|
"text": "default",
|
|
|
|
"kind": "function",
|
|
|
|
"kindModifiers": "export",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "Foo",
|
|
|
|
"kind": "class"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2020-05-12 16:26:31 +02:00
|
|
|
{
|
|
|
|
"text": "default",
|
|
|
|
"kind": "const",
|
|
|
|
"kindModifiers": "export",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "a",
|
|
|
|
"kind": "property"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "b",
|
|
|
|
"kind": "property"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "c",
|
|
|
|
"kind": "property",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "d",
|
|
|
|
"kind": "property"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2020-09-18 22:06:56 +02:00
|
|
|
{
|
|
|
|
"text": "default",
|
|
|
|
"kind": "const",
|
|
|
|
"kindModifiers": "export",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "x",
|
|
|
|
"kind": "property"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "y",
|
|
|
|
"kind": "property"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2020-01-22 14:13:04 +01:00
|
|
|
{
|
|
|
|
"text": "AB",
|
|
|
|
"kind": "class",
|
|
|
|
"kindModifiers": "export"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "abc",
|
|
|
|
"kind": "const"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "default",
|
|
|
|
"kind": "const",
|
|
|
|
"kindModifiers": "export"
|
2020-06-26 18:35:27 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "f1",
|
|
|
|
"kind": "function",
|
|
|
|
"kindModifiers": "export"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "f2",
|
|
|
|
"kind": "function",
|
|
|
|
"kindModifiers": "export",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "Foo",
|
|
|
|
"kind": "class"
|
|
|
|
}
|
|
|
|
]
|
2020-09-18 22:06:56 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "foo",
|
|
|
|
"kind": "function"
|
2020-01-22 14:13:04 +01:00
|
|
|
}
|
|
|
|
]
|
|
|
|
});
|
|
|
|
|