2016-06-16 22:20:12 +02:00
|
|
|
/// <reference path="fourslash.ts" />
|
|
|
|
|
|
|
|
////class X {
|
|
|
|
//// get x() {}
|
|
|
|
//// set x(value) {
|
|
|
|
//// // Inner declaration should make the setter top-level.
|
|
|
|
//// function f() {}
|
|
|
|
//// }
|
|
|
|
////}
|
|
|
|
|
2016-10-11 16:48:28 +02:00
|
|
|
verify.navigationTree({
|
|
|
|
"text": "<global>",
|
|
|
|
"kind": "script",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "X",
|
|
|
|
"kind": "class",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "x",
|
|
|
|
"kind": "getter"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "x",
|
|
|
|
"kind": "setter",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "f",
|
|
|
|
"kind": "function"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
});
|
|
|
|
|
2016-06-16 22:20:12 +02:00
|
|
|
verify.navigationBar([
|
|
|
|
{
|
|
|
|
"text": "<global>",
|
2016-07-26 19:41:20 +02:00
|
|
|
"kind": "script",
|
2016-06-16 22:20:12 +02:00
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "X",
|
|
|
|
"kind": "class"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "X",
|
|
|
|
"kind": "class",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "x",
|
|
|
|
"kind": "getter"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "x",
|
|
|
|
"kind": "setter"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"indent": 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "x",
|
|
|
|
"kind": "setter",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "f",
|
|
|
|
"kind": "function"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"indent": 2
|
|
|
|
}
|
|
|
|
]);
|