TypeScript/tests/cases/fourslash/navigationBarVariables.ts

93 lines
1.7 KiB
TypeScript
Raw Normal View History

2016-06-16 22:20:12 +02:00
/// <reference path="fourslash.ts"/>
////var x = 0;
////let y = 1;
////const z = 2;
verify.navigationTree({
"text": "<global>",
"kind": "script",
"childItems": [
{
"text": "x",
"kind": "var"
},
{
"text": "y",
"kind": "let"
},
{
"text": "z",
"kind": "const"
}
]
});
2016-06-16 22:20:12 +02:00
verify.navigationBar([
{
"text": "<global>",
"kind": "script",
2016-06-16 22:20:12 +02:00
"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.navigationTree({
"text": "<global>",
"kind": "script",
"childItems": [
{
"text": "a",
"kind": "var"
},
{
"text": "b",
"kind": "let"
},
{
"text": "c",
"kind": "const"
}
]
});
2016-06-16 22:20:12 +02:00
verify.navigationBar([
{
"text": "<global>",
"kind": "script",
2016-06-16 22:20:12 +02:00
"childItems": [
{
"text": "a",
"kind": "var"
},
{
"text": "b",
"kind": "let"
},
{
"text": "c",
"kind": "const"
}
]
}
]);