48 lines
860 B
TypeScript
48 lines
860 B
TypeScript
/// <reference path="fourslash.ts" />
|
|
|
|
// @allowJs: true
|
|
// @filename: /foo.js
|
|
////function Foo() {}
|
|
////class Foo {}
|
|
|
|
verify.navigationTree({
|
|
text: "<global>",
|
|
kind: "script",
|
|
childItems: [
|
|
{
|
|
text: "Foo",
|
|
kind: "function"
|
|
},
|
|
{
|
|
text: "Foo",
|
|
kind: "class"
|
|
}
|
|
]
|
|
});
|
|
|
|
verify.navigationBar([
|
|
{
|
|
text: "<global>",
|
|
kind: "script",
|
|
childItems: [
|
|
{
|
|
text: "Foo",
|
|
kind: "function"
|
|
},
|
|
{
|
|
text: "Foo",
|
|
kind: "class"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
text: "Foo",
|
|
kind: "function",
|
|
indent: 1
|
|
},
|
|
{
|
|
text: "Foo",
|
|
kind: "class",
|
|
indent: 1
|
|
}
|
|
]);
|