fd6fbdf7fe
* show more items in navbar * fixed missing node kind for property assignments * updated navBarNestedCommonJsExports test * updated navigationBarMerging_grandchildren test * updated navigationBarItemsFunctions test * updated navigationBarAnonymousClassAndFunctionExpressions test * updated navigationBarFunctionIndirectlyInVariableDeclaration test * updated navigationBarInitializerSpans test * updated navigationBarItemsPropertiesDefinedInConstructors test * updated tests * change nav icon for properties with function-like initializers * add test case for binding element with function-like initializer * add navigationBarNestedObjectLiterals test * add navigationBarFunctionLikePropertyAssignments test * made some silly names less silly (?) * added SpreadAssignments and ShorthandPropertyAssignments * new wording for primary menu items
106 lines
2.1 KiB
TypeScript
106 lines
2.1 KiB
TypeScript
/// <reference path="fourslash.ts"/>
|
|
|
|
////var a = {
|
|
//// propA: function() {
|
|
//// var c;
|
|
//// }
|
|
////};
|
|
////var b;
|
|
////b = {
|
|
//// propB: function() {
|
|
//// // function must not have an empty body to appear top level
|
|
//// var d;
|
|
//// }
|
|
////};
|
|
|
|
verify.navigationTree({
|
|
"text": "<global>",
|
|
"kind": "script",
|
|
"childItems": [
|
|
{
|
|
"text": "a",
|
|
"kind": "var",
|
|
"childItems": [
|
|
{
|
|
"text": "propA",
|
|
"kind": "method",
|
|
"childItems": [
|
|
{
|
|
"text": "c",
|
|
"kind": "var"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"text": "b",
|
|
"kind": "var"
|
|
},
|
|
{
|
|
"text": "propB",
|
|
"kind": "method",
|
|
"childItems": [
|
|
{
|
|
"text": "d",
|
|
"kind": "var"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
});
|
|
|
|
verify.navigationBar([
|
|
{
|
|
"text": "<global>",
|
|
"kind": "script",
|
|
"childItems": [
|
|
{
|
|
"text": "a",
|
|
"kind": "var"
|
|
},
|
|
{
|
|
"text": "b",
|
|
"kind": "var"
|
|
},
|
|
{
|
|
"text": "propB",
|
|
"kind": "method"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"text": "a",
|
|
"kind": "var",
|
|
"childItems": [
|
|
{
|
|
"text": "propA",
|
|
"kind": "method"
|
|
}
|
|
],
|
|
"indent": 1
|
|
},
|
|
{
|
|
"text": "propA",
|
|
"kind": "method",
|
|
"childItems": [
|
|
{
|
|
"text": "c",
|
|
"kind": "var"
|
|
}
|
|
],
|
|
"indent": 2
|
|
},
|
|
{
|
|
"text": "propB",
|
|
"kind": "method",
|
|
"childItems": [
|
|
{
|
|
"text": "d",
|
|
"kind": "var"
|
|
}
|
|
],
|
|
"indent": 1
|
|
}
|
|
]);
|