TypeScript/tests/cases/fourslash/navigateToIIFE.ts
Jason Ramsay 97641e7c3c NavigateTo is not working correctly for declarations in IIFEs
Fix: visit the node's children even when the function declaration name is undefined
2016-12-13 16:47:32 -08:00

20 lines
688 B
TypeScript

/// <reference path="fourslash.ts" />
// @Filename: file1.ts
/////*1*/(function () {
//// "use strict";
//// function onResume() {
//// };
////} )();
// @Filename: file2.ts
/////*2*/class EventManager {
//// public onResume(name: string) { }
////}
////class MyOtherEventManager {
//// public onResume(name: string) { }
////}
verify.navigationItemsListCount(3, "onResume");
verify.navigationItemsListCount(1, "onResume", undefined, test.marker("1").fileName);
verify.navigationItemsListContains("onResume", "function", "onResume", "exact", test.marker("1").fileName);
verify.navigationItemsListCount(2, "onResume", undefined, test.marker("2").fileName);