TypeScript/tests/cases/fourslash/navigationBarItemsMissingName2.ts

49 lines
956 B
TypeScript
Raw Normal View History

2015-03-02 23:41:44 +01:00
/////**
2014-12-04 00:05:38 +01:00
//// * This is a class.
//// */
////class /* But it has no name! */ {
//// foo() {}
2014-12-04 00:05:38 +01:00
////}
// Anonymous classes are still included.
verify.navigationTree({
"text": "<global>",
"kind": "script",
"childItems": [
{
"text": "<class>",
"kind": "class",
"childItems": [
{
"text": "foo",
"kind": "method"
}
]
}
]
});
verify.navigationBar([
{
"text": "<global>",
"kind": "script",
2016-06-16 22:20:12 +02:00
"childItems": [
{
"text": "<class>",
"kind": "class"
}
]
},
{
2016-06-16 22:20:12 +02:00
"text": "<class>",
"kind": "class",
"childItems": [
{
"text": "foo",
"kind": "method"
}
],
"indent": 1
}
]);