2017-11-17 01:51:02 +01:00
|
|
|
/// <reference path="fourslash.ts"/>
|
|
|
|
|
|
|
|
// @Filename: foo.js
|
|
|
|
////function f() {}
|
|
|
|
////f.prototype.x = 0;
|
2019-08-29 18:19:04 +02:00
|
|
|
////f.y = 0;
|
|
|
|
////f.prototype.method = function () {};
|
|
|
|
////Object.defineProperty(f, 'staticProp', {
|
|
|
|
//// set: function() {},
|
|
|
|
//// get: function(){
|
|
|
|
//// }
|
|
|
|
////});
|
|
|
|
////Object.defineProperty(f.prototype, 'name', {
|
|
|
|
//// set: function() {},
|
|
|
|
//// get: function(){
|
|
|
|
//// }
|
|
|
|
////});
|
2017-11-17 01:51:02 +01:00
|
|
|
|
|
|
|
verify.navigationTree({
|
|
|
|
"text": "<global>",
|
|
|
|
"kind": "script",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "f",
|
2019-08-29 18:19:04 +02:00
|
|
|
"kind": "class",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "constructor",
|
|
|
|
"kind": "constructor"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "x",
|
|
|
|
"kind": "property"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "y"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "method",
|
|
|
|
"kind": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "staticProp",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "get",
|
2019-09-12 00:54:27 +02:00
|
|
|
"kind": "method"
|
2019-08-29 18:19:04 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "set",
|
2019-09-12 00:54:27 +02:00
|
|
|
"kind": "method"
|
2019-08-29 18:19:04 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "name",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "get",
|
2019-09-12 00:54:27 +02:00
|
|
|
"kind": "method"
|
2019-08-29 18:19:04 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "set",
|
2019-09-12 00:54:27 +02:00
|
|
|
"kind": "method"
|
2019-08-29 18:19:04 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2017-11-17 01:51:02 +01:00
|
|
|
}
|
|
|
|
]
|
|
|
|
});
|
|
|
|
|
|
|
|
verify.navigationBar([
|
|
|
|
{
|
|
|
|
"text": "<global>",
|
|
|
|
"kind": "script",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "f",
|
2019-08-29 18:19:04 +02:00
|
|
|
"kind": "class"
|
2017-11-17 01:51:02 +01:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "f",
|
2019-08-29 18:19:04 +02:00
|
|
|
"kind": "class",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "constructor",
|
|
|
|
"kind": "constructor"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "x",
|
|
|
|
"kind": "property"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "y"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "method",
|
|
|
|
"kind": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "staticProp"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "name"
|
|
|
|
}
|
|
|
|
],
|
2017-11-17 01:51:02 +01:00
|
|
|
"indent": 1
|
2019-09-12 00:54:27 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "staticProp",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "get",
|
|
|
|
"kind": "method"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "set",
|
|
|
|
"kind": "method"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"indent": 2
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "name",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "get",
|
|
|
|
"kind": "method"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "set",
|
|
|
|
"kind": "method"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"indent": 2
|
|
|
|
}
|
2017-11-17 01:51:02 +01:00
|
|
|
]);
|