mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-29 16:29:19 -05:00
Fix bug: FunctionDeclaration may have missing name (#20618)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
////export default function() {
|
||||
//// /*start*/0/*end*/
|
||||
////}
|
||||
|
||||
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;
|
||||
}
|
||||
}`
|
||||
});
|
||||
Reference in New Issue
Block a user