2ea4cfe23b
This is a pre-existing issue that became more obvious after refining trivia handling.
20 lines
375 B
TypeScript
20 lines
375 B
TypeScript
// ==ORIGINAL==
|
|
function F() {
|
|
/*[#|*/function G() { }/*|]*/
|
|
}
|
|
// ==SCOPE::Extract to inner function in function 'F'==
|
|
function F() {
|
|
/*RENAME*/newFunction();
|
|
|
|
function newFunction() {
|
|
function G() { }
|
|
}
|
|
}
|
|
// ==SCOPE::Extract to function in global scope==
|
|
function F() {
|
|
/*RENAME*/newFunction();
|
|
}
|
|
|
|
function newFunction() {
|
|
function G() { }
|
|
}
|