2015-02-23 00:06:58 +01:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
////class A {
|
|
|
|
//// x: any
|
|
|
|
//// constructor([a]: any) {
|
|
|
|
//// }
|
|
|
|
////}
|
|
|
|
////class B {
|
|
|
|
//// x: any;
|
|
|
|
//// constructor( {a} = { a: 1 }) {
|
|
|
|
//// }
|
|
|
|
////}
|
|
|
|
|
2016-10-11 16:48:28 +02:00
|
|
|
verify.navigationTree({
|
|
|
|
"text": "<global>",
|
|
|
|
"kind": "script",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "A",
|
|
|
|
"kind": "class",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "constructor",
|
|
|
|
"kind": "constructor"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "x",
|
|
|
|
"kind": "property"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "B",
|
|
|
|
"kind": "class",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "constructor",
|
|
|
|
"kind": "constructor"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "x",
|
|
|
|
"kind": "property"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
});
|
|
|
|
|
2016-05-26 16:30:31 +02:00
|
|
|
verify.navigationBar([
|
|
|
|
{
|
|
|
|
"text": "<global>",
|
2016-07-26 19:41:20 +02:00
|
|
|
"kind": "script",
|
2016-05-26 16:30:31 +02:00
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "A",
|
|
|
|
"kind": "class"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "B",
|
|
|
|
"kind": "class"
|
|
|
|
}
|
2016-05-27 15:12:10 +02:00
|
|
|
]
|
2016-05-26 16:30:31 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "A",
|
|
|
|
"kind": "class",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "constructor",
|
|
|
|
"kind": "constructor"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "x",
|
|
|
|
"kind": "property"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"indent": 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "B",
|
|
|
|
"kind": "class",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "constructor",
|
|
|
|
"kind": "constructor"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "x",
|
|
|
|
"kind": "property"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"indent": 1
|
|
|
|
}
|
|
|
|
]);
|