TypeScript/tests/cases/fourslash/navigationBarJsDoc.ts

57 lines
982 B
TypeScript
Raw Normal View History

2016-06-13 21:08:31 +02:00
/// <reference path="fourslash.ts"/>
// @Filename: foo.js
/////** @typedef {(number|string)} NumberLike */
/////** @typedef {(string|number)} */
////const x = 0;
verify.navigationTree({
"text": "<global>",
"kind": "script",
"childItems": [
{
"text": "NumberLike",
"kind": "type"
},
{
"text": "x",
"kind": "const"
},
{
"text": "x",
"kind": "type"
}
]
});
2016-06-13 21:08:31 +02:00
verify.navigationBar([
{
2016-06-16 22:20:12 +02:00
"text": "<global>",
"kind": "script",
2016-06-16 22:20:12 +02:00
"childItems": [
{
"text": "NumberLike",
"kind": "type"
},
{
"text": "x",
"kind": "const"
},
{
"text": "x",
"kind": "type"
}
]
2016-06-13 21:08:31 +02:00
},
{
2016-06-16 22:20:12 +02:00
"text": "NumberLike",
"kind": "type",
"indent": 1,
2016-06-13 21:08:31 +02:00
},
{
"text": "x",
2016-06-16 22:20:12 +02:00
"kind": "type",
"indent": 1
2016-06-13 21:08:31 +02:00
}
]);