* add test for imported function * start to implement import references check * fix imported function test * skip alias when looking for symbol target * recognize ES6 imports * recognize some export syntax * add tests for imports/exports * add test for imported function * start to implement import references check * fix imported function test * skip alias when looking for symbol target * recognize ES6 imports * recognize some export syntax * add tests for imports/exports * add test for imported function * start to implement import references check * fix imported function test * recognize ES6 imports * recognize some export syntax * add mode import/export syntax cases * fix entryToFunctionCall to deal with new calls through property/element access expressions * add more tests for imports/exports * allow function and class declarations that have no name but have a default modifier * rename tests * fix conflict * fix tests * add test for nameless class * rename function * minor refactor * remove old tests * delete old test * refactor as suggested * use getContainingFunctionDeclaration
20 lines
547 B
TypeScript
20 lines
547 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
// @Filename: a.ts
|
|
////function /*a*/gen<T extends any[]>/*b*/(a: boolean, ...b: T): T {
|
|
//// return b;
|
|
////}
|
|
////gen(false);
|
|
////gen(false, 1);
|
|
////gen(true, 1, "two");
|
|
|
|
// @Filename: b.ts
|
|
////function /*c*/un/*d*/(a: boolean, ...b: number[] | [string, string]) {
|
|
//// return b;
|
|
////}
|
|
|
|
goTo.select("a", "b");
|
|
verify.not.refactorAvailable("Convert parameters to destructured object");
|
|
|
|
goTo.select("c", "d");
|
|
verify.not.refactorAvailable("Convert parameters to destructured object"); |