29 lines
1.9 KiB
TypeScript
29 lines
1.9 KiB
TypeScript
|
/// <reference path='fourslash.ts' />
|
||
|
|
||
|
//// /*z*/c/*y*/onst /*x*/f/*w*/oo = /*v*/f/*u*/unction bar() /*t*/{/*s*/ /*r*/r/*q*/eturn 42;};
|
||
|
|
||
|
goTo.select("z", "y");
|
||
|
verify.not.refactorAvailable("Convert arrow function or function expression", "Convert to named function");
|
||
|
verify.not.refactorAvailable("Convert arrow function or function expression", "Convert to anonymous function");
|
||
|
verify.not.refactorAvailable("Convert arrow function or function expression", "Convert to arrow function");
|
||
|
|
||
|
goTo.select("x", "w");
|
||
|
verify.not.refactorAvailable("Convert arrow function or function expression", "Convert to named function");
|
||
|
verify.not.refactorAvailable("Convert arrow function or function expression", "Convert to anonymous function");
|
||
|
verify.not.refactorAvailable("Convert arrow function or function expression", "Convert to arrow function");
|
||
|
|
||
|
goTo.select("v", "u");
|
||
|
verify.not.refactorAvailable("Convert arrow function or function expression", "Convert to named function");
|
||
|
verify.not.refactorAvailable("Convert arrow function or function expression", "Convert to anonymous function");
|
||
|
verify.refactorAvailable("Convert arrow function or function expression", "Convert to arrow function");
|
||
|
|
||
|
goTo.select("t", "s");
|
||
|
verify.not.refactorAvailable("Convert arrow function or function expression", "Convert to named function");
|
||
|
verify.not.refactorAvailable("Convert arrow function or function expression", "Convert to anonymous function");
|
||
|
verify.not.refactorAvailable("Convert arrow function or function expression", "Convert to arrow function");
|
||
|
|
||
|
goTo.select("r", "q");
|
||
|
verify.not.refactorAvailable("Convert arrow function or function expression", "Convert to named function");
|
||
|
verify.not.refactorAvailable("Convert arrow function or function expression", "Convert to anonymous function");
|
||
|
verify.not.refactorAvailable("Convert arrow function or function expression", "Convert to arrow function");
|