TypeScript/tests/cases/fourslash/navigationBarItemsPropertiesDefinedInConstructors.ts
2016-10-11 08:32:37 -07:00

83 lines
2 KiB
TypeScript

/// <reference path="fourslash.ts"/>
////class List<T> {
//// constructor(public a: boolean, private b: T, readonly c: string, d: number) {
//// var local = 0;
//// }
////}
verify.navigationTree({
"text": "<global>",
"kind": "script",
"childItems": [
{
"text": "List",
"kind": "class",
"childItems": [
{
"text": "constructor",
"kind": "constructor",
"childItems": [
{
"text": "local",
"kind": "var"
}
]
},
{
"text": "a",
"kind": "property",
"kindModifiers": "public"
},
{
"text": "b",
"kind": "property",
"kindModifiers": "private"
},
{
"text": "c",
"kind": "property"
}
]
}
]
});
verify.navigationBar([
{
"text": "<global>",
"kind": "script",
"childItems": [
{
"text": "List",
"kind": "class"
}
]
},
{
"text": "List",
"kind": "class",
"childItems": [
{
"text": "constructor",
"kind": "constructor"
},
{
"text": "a",
"kind": "property",
"kindModifiers": "public"
},
{
"text": "b",
"kind": "property",
"kindModifiers": "private"
},
{
"text": "c",
"kind": "property"
}
],
"indent": 1
}
]);