2016-05-13 17:26:41 +02:00
|
|
|
/// <reference path="fourslash.ts"/>
|
|
|
|
|
|
|
|
////class A {}
|
|
|
|
////const B = class C {
|
|
|
|
//// public x;
|
|
|
|
////};
|
|
|
|
////function D() {}
|
|
|
|
////const E = function F() {}
|
2016-05-16 15:41:39 +02:00
|
|
|
////console.log(function() {}, class {}); // Expression with no name should have no effect.
|
|
|
|
////console.log(function inner() {});
|
|
|
|
////String(function fun() { class cls { public prop; } }));
|
2016-05-13 17:36:51 +02:00
|
|
|
|
2016-05-13 19:23:38 +02:00
|
|
|
function navExact(name: string, kind: string) {
|
|
|
|
verify.navigationItemsListContains(name, kind, name, "exact");
|
|
|
|
}
|
2016-05-13 17:26:41 +02:00
|
|
|
|
2016-05-13 19:23:38 +02:00
|
|
|
navExact("A", "class");
|
|
|
|
navExact("B", "const");
|
|
|
|
navExact("C", "class");
|
|
|
|
navExact("x", "property");
|
2016-05-13 17:26:41 +02:00
|
|
|
|
2016-05-13 19:23:38 +02:00
|
|
|
navExact("D", "function");
|
|
|
|
navExact("E", "const");
|
|
|
|
navExact("F", "function")
|
2016-05-13 17:36:51 +02:00
|
|
|
|
2016-05-13 19:23:38 +02:00
|
|
|
navExact("inner", "function");
|
|
|
|
|
|
|
|
navExact("fun", "function");
|
|
|
|
navExact("cls", "class");
|
|
|
|
navExact("prop", "property");
|