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
139 lines
2.6 KiB
TypeScript
139 lines
2.6 KiB
TypeScript
/// <reference path="fourslash.ts"/>
|
|
|
|
////var a = {
|
|
//// b: 0,
|
|
//// c: {},
|
|
//// d: {
|
|
//// e: 1,
|
|
//// },
|
|
//// f: {
|
|
//// g: 2,
|
|
//// h: {
|
|
//// i: 3,
|
|
//// },
|
|
//// },
|
|
////}
|
|
|
|
verify.navigationTree({
|
|
"text": "<global>",
|
|
"kind": "script",
|
|
"childItems": [
|
|
{
|
|
"text": "a",
|
|
"kind": "var",
|
|
"childItems": [
|
|
{
|
|
"text": "b",
|
|
"kind": "property"
|
|
},
|
|
{
|
|
"text": "c",
|
|
"kind": "property"
|
|
},
|
|
{
|
|
"text": "d",
|
|
"kind": "property",
|
|
"childItems": [
|
|
{
|
|
"text": "e",
|
|
"kind": "property"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"text": "f",
|
|
"kind": "property",
|
|
"childItems": [
|
|
{
|
|
"text": "g",
|
|
"kind": "property"
|
|
},
|
|
{
|
|
"text": "h",
|
|
"kind": "property",
|
|
"childItems": [
|
|
{
|
|
"text": "i",
|
|
"kind": "property"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
});
|
|
|
|
verify.navigationBar([
|
|
{
|
|
"text": "<global>",
|
|
"kind": "script",
|
|
"childItems": [
|
|
{
|
|
"text": "a",
|
|
"kind": "var"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"text": "a",
|
|
"kind": "var",
|
|
"childItems": [
|
|
{
|
|
"text": "b",
|
|
"kind": "property"
|
|
},
|
|
{
|
|
"text": "c",
|
|
"kind": "property"
|
|
},
|
|
{
|
|
"text": "d",
|
|
"kind": "property"
|
|
},
|
|
{
|
|
"text": "f",
|
|
"kind": "property"
|
|
}
|
|
],
|
|
"indent": 1
|
|
},
|
|
{
|
|
"text": "d",
|
|
"kind": "property",
|
|
"childItems": [
|
|
{
|
|
"text": "e",
|
|
"kind": "property"
|
|
}
|
|
],
|
|
"indent": 2
|
|
},
|
|
{
|
|
"text": "f",
|
|
"kind": "property",
|
|
"childItems": [
|
|
{
|
|
"text": "g",
|
|
"kind": "property"
|
|
},
|
|
{
|
|
"text": "h",
|
|
"kind": "property"
|
|
}
|
|
],
|
|
"indent": 2
|
|
},
|
|
{
|
|
"text": "h",
|
|
"kind": "property",
|
|
"childItems": [
|
|
{
|
|
"text": "i",
|
|
"kind": "property"
|
|
}
|
|
],
|
|
"indent": 3
|
|
}
|
|
]); |