fix(33362): 'extract to function' for variable that is assigne… (#36455)

This commit is contained in:
Alexander T
2020-01-28 22:10:12 +02:00
committed by Daniel Rosenwasser
parent fdf29891e2
commit 2cc7a5d6bf
2 changed files with 39 additions and 0 deletions

View File

@@ -437,6 +437,7 @@ namespace ts.refactor.extractSymbol {
permittedJumps = PermittedJumps.Return;
}
break;
case SyntaxKind.DefaultClause:
case SyntaxKind.CaseClause:
// allow unlabeled break inside case clauses
permittedJumps |= PermittedJumps.Break;