///
// @jsx: preserve
// @filename: a.tsx
////function Foo() {
//// return (
////
//// /*a*/
/*b*/
////
//// );
////}
goTo.file("a.tsx");
goTo.select("a", "b");
edit.applyRefactor({
refactorName: "Extract Symbol",
actionName: "function_scope_0",
actionDescription: "Extract to inner function in function 'Foo'",
newContent:
`function Foo() {
return (
{newFunction()}
);
function /*RENAME*/newFunction() {
return
;
}
}`
});