26 lines
No EOL
479 B
TypeScript
26 lines
No EOL
479 B
TypeScript
// ==ORIGINAL==
|
|
function M1() { }
|
|
function M2() {
|
|
/*[#|*/return 1;/*|]*/
|
|
}
|
|
function M3() { }
|
|
// ==SCOPE::Extract to inner function in function 'M2'==
|
|
function M1() { }
|
|
function M2() {
|
|
return /*RENAME*/newFunction();
|
|
|
|
function newFunction() {
|
|
return 1;
|
|
}
|
|
}
|
|
function M3() { }
|
|
// ==SCOPE::Extract to function in global scope==
|
|
function M1() { }
|
|
function M2() {
|
|
return /*RENAME*/newFunction();
|
|
}
|
|
function newFunction() {
|
|
return 1;
|
|
}
|
|
|
|
function M3() { } |