2017-12-11 18:45:20 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
////export default function() {
|
2019-06-06 19:28:42 +02:00
|
|
|
//// /*start*/0/*end*/;
|
2017-12-11 18:45:20 +01:00
|
|
|
////}
|
|
|
|
|
|
|
|
goTo.select('start', 'end')
|
|
|
|
edit.applyRefactor({
|
|
|
|
refactorName: "Extract Symbol",
|
|
|
|
actionName: "function_scope_0",
|
|
|
|
actionDescription: "Extract to inner function in anonymous function",
|
|
|
|
newContent:
|
|
|
|
`export default function() {
|
|
|
|
/*RENAME*/newFunction();
|
|
|
|
|
|
|
|
function newFunction() {
|
|
|
|
0;
|
|
|
|
}
|
|
|
|
}`
|
|
|
|
});
|