TypeScript/tests/cases/fourslash/navigationItemsSpecialPropertyAssignment.ts
Andy 7541c705bf Support navTo for special assignment kinds (#18154)
* Support navTo for special assignment kinds

* Return ScriptElementKind.unknown
2017-09-07 07:45:11 -07:00

21 lines
713 B
TypeScript

/// <reference path="fourslash.ts"/>
// @allowJs: true
// @Filename: /a.js
////exports.{| "name": "x", "kind": "const" |}x = 0;
////exports.{| "name": "y", "kind": "function" |}y = function() {};
////function Cls() {
//// this.{| "name": "prop", "kind": "property" |}prop = 0;
////}
////Cls.{| "name": "staticMethod", "kind": "method" |}staticMethod = function() {};
////Cls.{| "name": "staticProperty", "kind": "property" |}staticProperty = 0;
////Cls.prototype.{| "name": "instance", "kind": "method" |}instance = function() {};
for (const marker of test.markers()) {
verify.navigationItemsListContains(
marker.data.name,
marker.data.kind,
marker.data.name,
"exact");
}