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 isEven(n) /*t*/{/*s*/ /*r*/r/*q*/eturn n === 0 ? true : n === 1 ? false : isEven(n - 2);};
|
||
|
|
||
|
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.not.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");
|