53 lines
1 KiB
TypeScript
53 lines
1 KiB
TypeScript
/// <reference path="fourslash.ts"/>
|
|
|
|
////var x = 0;
|
|
////let y = 1;
|
|
////const z = 2;
|
|
|
|
verify.navigationBar([
|
|
{
|
|
"text": "<global>",
|
|
"kind": "script",
|
|
"childItems": [
|
|
{
|
|
"text": "x",
|
|
"kind": "var"
|
|
},
|
|
{
|
|
"text": "y",
|
|
"kind": "let"
|
|
},
|
|
{
|
|
"text": "z",
|
|
"kind": "const"
|
|
}
|
|
]
|
|
}
|
|
]);
|
|
|
|
// @Filename: file2.ts
|
|
////var {a} = 0;
|
|
////let {a: b} = 0;
|
|
////const [c] = 0;
|
|
|
|
goTo.file("file2.ts");
|
|
verify.navigationBar([
|
|
{
|
|
"text": "<global>",
|
|
"kind": "script",
|
|
"childItems": [
|
|
{
|
|
"text": "a",
|
|
"kind": "var"
|
|
},
|
|
{
|
|
"text": "b",
|
|
"kind": "let"
|
|
},
|
|
{
|
|
"text": "c",
|
|
"kind": "const"
|
|
}
|
|
]
|
|
}
|
|
]);
|