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
65 lines
1.3 KiB
TypeScript
65 lines
1.3 KiB
TypeScript
/// <reference path='fourslash.ts'/>
|
|
////'use strict'
|
|
////const a = {
|
|
//// ...b,
|
|
//// c,
|
|
//// d: 0
|
|
////};
|
|
|
|
verify.navigationTree({
|
|
text: "<global>",
|
|
kind: "script",
|
|
childItems: [
|
|
{
|
|
text: "a",
|
|
kind: "const",
|
|
childItems: [
|
|
{
|
|
text: "b",
|
|
kind: "property",
|
|
},
|
|
{
|
|
text: "c",
|
|
kind: "property"
|
|
},
|
|
{
|
|
text: "d",
|
|
kind: "property"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
});
|
|
|
|
verify.navigationBar([
|
|
{
|
|
text: "<global>",
|
|
kind: "script",
|
|
childItems: [
|
|
{
|
|
text: "a",
|
|
kind: "const"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
text: "a",
|
|
kind: "const",
|
|
childItems: [
|
|
{
|
|
text: "b",
|
|
kind: "property",
|
|
},
|
|
{
|
|
text: "c",
|
|
kind: "property"
|
|
},
|
|
{
|
|
text: "d",
|
|
kind: "property"
|
|
}
|
|
],
|
|
indent: 1
|
|
}
|
|
]);
|