2018-07-16 21:37:45 +02:00
|
|
|
/// <reference path="fourslash.ts"/>
|
|
|
|
|
2019-09-12 00:54:27 +02:00
|
|
|
////// Should not merge grandchildren with property assignments
|
2018-07-16 21:37:45 +02:00
|
|
|
////const o = {
|
|
|
|
//// a: {
|
|
|
|
//// m() {},
|
|
|
|
//// },
|
|
|
|
//// b: {
|
|
|
|
//// m() {},
|
|
|
|
//// },
|
|
|
|
////}
|
|
|
|
|
|
|
|
verify.navigationTree({
|
|
|
|
text: "<global>",
|
|
|
|
kind: "script",
|
|
|
|
childItems: [
|
|
|
|
{
|
|
|
|
text: "o",
|
|
|
|
kind: "const",
|
|
|
|
childItems: [
|
2019-09-12 00:54:27 +02:00
|
|
|
{
|
|
|
|
text: "a",
|
|
|
|
kind: "property",
|
|
|
|
childItems: [
|
|
|
|
{ text: "m", kind: "method" }
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: "b",
|
|
|
|
kind: "property",
|
|
|
|
childItems: [
|
|
|
|
{ text: "m", kind: "method" }
|
|
|
|
]
|
|
|
|
},
|
2018-07-16 21:37:45 +02:00
|
|
|
],
|
|
|
|
},
|
|
|
|
]
|
|
|
|
});
|
|
|
|
|
|
|
|
verify.navigationBar([
|
|
|
|
{
|
|
|
|
text: "<global>",
|
|
|
|
kind: "script",
|
|
|
|
childItems: [
|
|
|
|
{ text: "o", kind: "const" },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: "o",
|
|
|
|
kind: "const",
|
2019-09-12 00:54:27 +02:00
|
|
|
childItems: [
|
|
|
|
{ text: "a", kind: "property" },
|
|
|
|
{ text: "b", kind: "property" },
|
|
|
|
],
|
|
|
|
indent: 1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: "a",
|
|
|
|
kind: "property",
|
2018-07-16 21:37:45 +02:00
|
|
|
childItems: [
|
|
|
|
{ text: "m", kind: "method" },
|
2019-09-12 00:54:27 +02:00
|
|
|
],
|
|
|
|
indent: 2,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: "b",
|
|
|
|
kind: "property",
|
|
|
|
childItems: [
|
2018-07-16 21:37:45 +02:00
|
|
|
{ text: "m", kind: "method" },
|
|
|
|
],
|
2019-09-12 00:54:27 +02:00
|
|
|
indent: 2,
|
2018-07-16 21:37:45 +02:00
|
|
|
},
|
2019-09-12 00:54:27 +02:00
|
|
|
|
2018-07-16 21:37:45 +02:00
|
|
|
]);
|