2016-02-21 22:37:07 +01:00
|
|
|
/// <reference path="fourslash.ts"/>
|
|
|
|
|
|
|
|
////class Class {
|
|
|
|
//// constructor() {
|
2016-05-26 16:30:31 +02:00
|
|
|
//// function LocalFunctionInConstructor() {}
|
|
|
|
//// interface LocalInterfaceInConstrcutor {}
|
|
|
|
//// enum LocalEnumInConstructor { LocalEnumMemberInConstructor }
|
2016-02-21 22:37:07 +01:00
|
|
|
//// }
|
2016-02-22 05:38:14 +01:00
|
|
|
////
|
2016-02-21 22:37:07 +01:00
|
|
|
//// method() {
|
2016-05-26 16:30:31 +02:00
|
|
|
//// function LocalFunctionInMethod() {
|
|
|
|
//// function LocalFunctionInLocalFunctionInMethod() {}
|
2016-02-21 22:37:07 +01:00
|
|
|
//// }
|
2016-05-26 16:30:31 +02:00
|
|
|
//// interface LocalInterfaceInMethod {}
|
|
|
|
//// enum LocalEnumInMethod { LocalEnumMemberInMethod }
|
2016-02-21 22:37:07 +01:00
|
|
|
//// }
|
2016-02-22 05:38:14 +01:00
|
|
|
////
|
2016-05-26 16:30:31 +02:00
|
|
|
//// emptyMethod() { } // Non child functions method should not be duplicated
|
2016-02-21 22:37:07 +01:00
|
|
|
////}
|
|
|
|
|
2016-10-11 16:48:28 +02:00
|
|
|
verify.navigationTree({
|
|
|
|
"text": "<global>",
|
|
|
|
"kind": "script",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "Class",
|
|
|
|
"kind": "class",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "constructor",
|
|
|
|
"kind": "constructor",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "LocalEnumInConstructor",
|
|
|
|
"kind": "enum",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "LocalEnumMemberInConstructor",
|
2017-01-20 16:20:23 +01:00
|
|
|
"kind": "enum member"
|
2016-10-11 16:48:28 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "LocalFunctionInConstructor",
|
|
|
|
"kind": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "LocalInterfaceInConstrcutor",
|
|
|
|
"kind": "interface"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "emptyMethod",
|
|
|
|
"kind": "method"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "method",
|
|
|
|
"kind": "method",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "LocalEnumInMethod",
|
|
|
|
"kind": "enum",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "LocalEnumMemberInMethod",
|
2017-01-20 16:20:23 +01:00
|
|
|
"kind": "enum member"
|
2016-10-11 16:48:28 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "LocalFunctionInMethod",
|
|
|
|
"kind": "function",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "LocalFunctionInLocalFunctionInMethod",
|
|
|
|
"kind": "function"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "LocalInterfaceInMethod",
|
|
|
|
"kind": "interface"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
});
|
|
|
|
|
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": "Class",
|
|
|
|
"kind": "class"
|
|
|
|
}
|
2016-05-27 15:12:10 +02:00
|
|
|
]
|
2016-05-26 16:30:31 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "Class",
|
|
|
|
"kind": "class",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "constructor",
|
|
|
|
"kind": "constructor"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "emptyMethod",
|
|
|
|
"kind": "method"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "method",
|
|
|
|
"kind": "method"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"indent": 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "constructor",
|
|
|
|
"kind": "constructor",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "LocalEnumInConstructor",
|
|
|
|
"kind": "enum"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "LocalFunctionInConstructor",
|
|
|
|
"kind": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "LocalInterfaceInConstrcutor",
|
|
|
|
"kind": "interface"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"indent": 2
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "LocalEnumInConstructor",
|
|
|
|
"kind": "enum",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "LocalEnumMemberInConstructor",
|
2017-01-20 16:20:23 +01:00
|
|
|
"kind": "enum member"
|
2016-05-26 16:30:31 +02:00
|
|
|
}
|
|
|
|
],
|
2016-06-16 22:20:12 +02:00
|
|
|
"indent": 3
|
2016-05-26 16:30:31 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "LocalFunctionInConstructor",
|
|
|
|
"kind": "function",
|
2016-06-16 22:20:12 +02:00
|
|
|
"indent": 3
|
2016-05-26 16:30:31 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "LocalInterfaceInConstrcutor",
|
|
|
|
"kind": "interface",
|
2016-06-16 22:20:12 +02:00
|
|
|
"indent": 3
|
2016-05-26 16:30:31 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "method",
|
|
|
|
"kind": "method",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "LocalEnumInMethod",
|
|
|
|
"kind": "enum"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "LocalFunctionInMethod",
|
|
|
|
"kind": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "LocalInterfaceInMethod",
|
|
|
|
"kind": "interface"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"indent": 2
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "LocalEnumInMethod",
|
|
|
|
"kind": "enum",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "LocalEnumMemberInMethod",
|
2017-01-20 16:20:23 +01:00
|
|
|
"kind": "enum member"
|
2016-05-26 16:30:31 +02:00
|
|
|
}
|
|
|
|
],
|
2016-06-16 22:20:12 +02:00
|
|
|
"indent": 3
|
2016-05-26 16:30:31 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "LocalFunctionInMethod",
|
|
|
|
"kind": "function",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "LocalFunctionInLocalFunctionInMethod",
|
|
|
|
"kind": "function"
|
|
|
|
}
|
|
|
|
],
|
2016-06-16 22:20:12 +02:00
|
|
|
"indent": 3
|
2016-05-26 16:30:31 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "LocalInterfaceInMethod",
|
|
|
|
"kind": "interface",
|
2016-06-16 22:20:12 +02:00
|
|
|
"indent": 3
|
2016-05-26 16:30:31 +02:00
|
|
|
}
|
|
|
|
]);
|