2019-08-07 22:50:18 +02:00
|
|
|
|
|
|
|
//// function f(p1: () => any, p2: string) { }
|
|
|
|
//// f(() => { }, `line1\
|
|
|
|
//// line2\
|
|
|
|
//// line3`);
|
|
|
|
////
|
|
|
|
//// class c1 {
|
|
|
|
//// const a = ' ''line1\
|
|
|
|
//// line2';
|
|
|
|
//// }
|
2019-08-24 00:42:03 +02:00
|
|
|
////
|
|
|
|
//// f(() => { }, `unterminated backtick 1
|
|
|
|
//// unterminated backtick 2
|
|
|
|
//// unterminated backtick 3
|
2019-08-07 22:50:18 +02:00
|
|
|
|
|
|
|
verify.navigationTree({
|
|
|
|
"text": "<global>",
|
|
|
|
"kind": "script",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "c1",
|
|
|
|
"kind": "class",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "a",
|
|
|
|
"kind": "property"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "'line1 line2'",
|
|
|
|
"kind": "property"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "f",
|
|
|
|
"kind": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "f(`line1line2line3`) callback",
|
|
|
|
"kind": "function"
|
2019-08-24 00:42:03 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "f(`unterminated backtick 1unterminated backtick 2unterminated backtick 3) callback",
|
|
|
|
"kind": "function"
|
2019-08-07 22:50:18 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
});
|
|
|
|
|
|
|
|
verify.navigationBar([
|
|
|
|
{
|
|
|
|
"text": "<global>",
|
|
|
|
"kind": "script",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "c1",
|
|
|
|
"kind": "class"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "f",
|
|
|
|
"kind": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "f(`line1line2line3`) callback",
|
|
|
|
"kind": "function"
|
2019-08-24 00:42:03 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "f(`unterminated backtick 1unterminated backtick 2unterminated backtick 3) callback",
|
|
|
|
"kind": "function"
|
2019-08-07 22:50:18 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "c1",
|
|
|
|
"kind": "class",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "a",
|
|
|
|
"kind": "property"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "'line1 line2'",
|
|
|
|
"kind": "property"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"indent": 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "f",
|
|
|
|
"kind": "function",
|
|
|
|
"indent": 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "f(`line1line2line3`) callback",
|
|
|
|
"kind": "function",
|
|
|
|
"indent": 1
|
2019-08-24 00:42:03 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "f(`unterminated backtick 1unterminated backtick 2unterminated backtick 3) callback",
|
|
|
|
"kind": "function",
|
|
|
|
"indent": 1
|
2019-08-07 22:50:18 +02:00
|
|
|
}
|
|
|
|
]);
|