-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Introduce boundary/break
control abstraction.
#16612
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
94111e9
Introduce `boundary/break` control abstraction.
odersky a7dc51f
Make `boundary.apply` a regular inline
odersky 5aa4b90
Fix parent of ControlException
odersky 01ac5e0
Deprecate `NonLocalReturns` API
odersky d1d5301
Add loop test with exit and continue
odersky 4610201
Make `break` non-inlined functions
odersky 04e7bc1
Suppress returns that cross different stack sizes.
odersky 5620e3e
Add test from errorhandling strawman
odersky 395f2b6
Make test Scala.js-compliant
odersky 5447a49
Another test
odersky 3e5a678
Add validation to the strawman
odersky 39e63f3
Adress some review comments and other tweaks
odersky 8fb3c38
Make Label contravariant
odersky fbc8077
Make Label a final class
odersky a51a586
Add loops test with separate exit and continue boundaries
odersky 38923f9
Another test
odersky 861f5da
Actually test the stack size problem.
sjrd 63f6e97
Optimize extractors
odersky da42cf7
Drop ControlException
odersky 2d67e6b
Track stack height differences in the back-end for Labeled Returns.
sjrd 009d623
DropBreaks does not track stack changes anymore.
sjrd 0c1b9b5
Fix test
odersky fdad63e
Merge pull request #24 from dotty-staging/add-errorhandling-stack-han…
odersky 2e3c4cf
Revert "Suppress returns that cross different stack sizes."
odersky cf8daf0
Apply suggestions from code review
odersky 211ddb7
Deprecate NonLocalReturns object
odersky a8f81dd
Fix test
odersky 335d18d
Add boundary break optimization tests
nicolasstucki 6dded2c
Refactoring of break methiod calls
odersky fcef230
Fix bytecode test
odersky a17a6df
Drop `break` object in `scala.util`
odersky 91bd5df
Drop `Label_this` and fix comments referring to it
odersky c3cf035
Make var private
odersky 69b7a48
Update migration warning message
odersky File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.