* 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
121 lines
2.5 KiB
TypeScript
121 lines
2.5 KiB
TypeScript
/// <reference path='fourslash.ts'/>
|
|
////'use strict'
|
|
////var foo, {}
|
|
////var bar, []
|
|
////let foo1, {a, b}
|
|
////const bar1, [c, d]
|
|
////var {e, x: [f, g]} = {a:1, x:[]};
|
|
////var { h: i = function j() {} } = obj;
|
|
|
|
verify.navigationTree({
|
|
"text": "<global>",
|
|
"kind": "script",
|
|
"childItems": [
|
|
{
|
|
"text": "a",
|
|
"kind": "let"
|
|
},
|
|
{
|
|
"text": "b",
|
|
"kind": "let"
|
|
},
|
|
{
|
|
"text": "bar",
|
|
"kind": "var"
|
|
},
|
|
{
|
|
"text": "bar1",
|
|
"kind": "const"
|
|
},
|
|
{
|
|
"text": "c",
|
|
"kind": "const"
|
|
},
|
|
{
|
|
"text": "d",
|
|
"kind": "const"
|
|
},
|
|
{
|
|
"text": "e",
|
|
"kind": "var"
|
|
},
|
|
{
|
|
"text": "f",
|
|
"kind": "var"
|
|
},
|
|
{
|
|
"text": "foo",
|
|
"kind": "var"
|
|
},
|
|
{
|
|
"text": "foo1",
|
|
"kind": "let"
|
|
},
|
|
{
|
|
"text": "g",
|
|
"kind": "var"
|
|
},
|
|
{
|
|
"text": "i",
|
|
"kind": "var"
|
|
}
|
|
]
|
|
});
|
|
|
|
verify.navigationBar([
|
|
{
|
|
"text": "<global>",
|
|
"kind": "script",
|
|
"childItems": [
|
|
{
|
|
"text": "a",
|
|
"kind": "let"
|
|
},
|
|
{
|
|
"text": "b",
|
|
"kind": "let"
|
|
},
|
|
{
|
|
"text": "bar",
|
|
"kind": "var"
|
|
},
|
|
{
|
|
"text": "bar1",
|
|
"kind": "const"
|
|
},
|
|
{
|
|
"text": "c",
|
|
"kind": "const"
|
|
},
|
|
{
|
|
"text": "d",
|
|
"kind": "const"
|
|
},
|
|
{
|
|
"text": "e",
|
|
"kind": "var"
|
|
},
|
|
{
|
|
"text": "f",
|
|
"kind": "var"
|
|
},
|
|
{
|
|
"text": "foo",
|
|
"kind": "var"
|
|
},
|
|
{
|
|
"text": "foo1",
|
|
"kind": "let"
|
|
},
|
|
{
|
|
"text": "g",
|
|
"kind": "var"
|
|
},
|
|
{
|
|
"text": "i",
|
|
"kind": "var"
|
|
}
|
|
]
|
|
}
|
|
]);
|