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
75 lines
1.5 KiB
TypeScript
75 lines
1.5 KiB
TypeScript
/// <reference path="fourslash.ts"/>
|
|
|
|
////// Should not merge grandchildren with property assignments
|
|
////const o = {
|
|
//// a: {
|
|
//// m() {},
|
|
//// },
|
|
//// b: {
|
|
//// m() {},
|
|
//// },
|
|
////}
|
|
|
|
verify.navigationTree({
|
|
text: "<global>",
|
|
kind: "script",
|
|
childItems: [
|
|
{
|
|
text: "o",
|
|
kind: "const",
|
|
childItems: [
|
|
{
|
|
text: "a",
|
|
kind: "property",
|
|
childItems: [
|
|
{ text: "m", kind: "method" }
|
|
]
|
|
},
|
|
{
|
|
text: "b",
|
|
kind: "property",
|
|
childItems: [
|
|
{ text: "m", kind: "method" }
|
|
]
|
|
},
|
|
],
|
|
},
|
|
]
|
|
});
|
|
|
|
verify.navigationBar([
|
|
{
|
|
text: "<global>",
|
|
kind: "script",
|
|
childItems: [
|
|
{ text: "o", kind: "const" },
|
|
],
|
|
},
|
|
{
|
|
text: "o",
|
|
kind: "const",
|
|
childItems: [
|
|
{ text: "a", kind: "property" },
|
|
{ text: "b", kind: "property" },
|
|
],
|
|
indent: 1,
|
|
},
|
|
{
|
|
text: "a",
|
|
kind: "property",
|
|
childItems: [
|
|
{ text: "m", kind: "method" },
|
|
],
|
|
indent: 2,
|
|
},
|
|
{
|
|
text: "b",
|
|
kind: "property",
|
|
childItems: [
|
|
{ text: "m", kind: "method" },
|
|
],
|
|
indent: 2,
|
|
},
|
|
|
|
]);
|