TypeScript/tests/cases/fourslash/navigationBarJsDoc.ts
2016-10-11 08:32:37 -07:00

57 lines
982 B
TypeScript

/// <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"
}
]
});
verify.navigationBar([
{
"text": "<global>",
"kind": "script",
"childItems": [
{
"text": "NumberLike",
"kind": "type"
},
{
"text": "x",
"kind": "const"
},
{
"text": "x",
"kind": "type"
}
]
},
{
"text": "NumberLike",
"kind": "type",
"indent": 1,
},
{
"text": "x",
"kind": "type",
"indent": 1
}
]);