-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18165 from amcasey/GH18144
Simplify and correct PermittedJumps computation
- Loading branch information
Showing
3 changed files
with
92 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
tests/baselines/reference/extractMethod/extractMethod22.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// ==ORIGINAL== | ||
function test() { | ||
try { | ||
} | ||
finally { | ||
return 1; | ||
} | ||
} | ||
// ==SCOPE::function 'test'== | ||
function test() { | ||
try { | ||
} | ||
finally { | ||
return newFunction(); | ||
} | ||
|
||
function newFunction() { | ||
return 1; | ||
} | ||
} | ||
// ==SCOPE::global scope== | ||
function test() { | ||
try { | ||
} | ||
finally { | ||
return newFunction(); | ||
} | ||
} | ||
function newFunction() { | ||
return 1; | ||
} |