aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala/scala/async/run/hygiene/Hygiene.scala
Commit message (Collapse)AuthorAgeFilesLines
* fix procedure syntaxxuwei-k2018-05-091-5/+5
|
* copyright 2018 LightbendSeth Tisue2018-02-061-1/+1
|
* Update copyright years.Jason Zaugg2014-01-141-1/+1
| | | | 2013 must have been unlucky.
* Remove @RunWith annotations from test cases.Jason Zaugg2013-08-151-3/+0
| | | | | These are are at odds with the junit-interface SBT test framework under SBT 0.13.+, and appear to be superfluous.
* Move implementation details to scala.async.internal._.Jason Zaugg2013-07-071-1/+2
| | | | | If we intend to keep CPS fallback around for any length of time it should probably move there too.
* Make the name uniqification more selective.Jason Zaugg2012-11-261-1/+1
| | | | | | We need not, and should not, rename definitions beyond the scope of the async transform, e.g. in nested classes of function bodies.
* Rewrite the state machine to a class, rather than an object.Jason Zaugg2012-11-261-55/+15
| | | | | | | | | | | | To avoid suprises in tree retyping, the instance of this class is immediately upcase to StateMachine[Promise[T], ExecContext]. Allow nested non-case classes. These pop up when we use nested async calls. Only look for duplicate names in the subtrees traversed by AsyncTraverser.
* Preserve outer This() refs through resetAttrs.Jason Zaugg2012-11-261-12/+35
| | | | | | Adapt the compiler's standard ResetAttrs to keep This() nodes don't refer to a symbol defined in the current async block.
* Synthesize an object implementing Function#apply and resume()Jason Zaugg2012-11-261-0/+13
| | | | | | | | There is a fly in the ointment: any This() trees in the provided code are getting rebound to this class. Sounds like more resetAttrs fun ahead. The object also serves as the Future {} thunk.
* Address review commentphaller2012-11-261-3/+1
|
* Fix #19phaller2012-11-261-26/+66
| | | | | | | - Add tests where the result of an await is assigned to a variable external to the async block. - Clean up HygieneSpec.
* add missing copyrightJason Zaugg2012-11-241-1/+1
|
* Avoid hygiene problems by suffixing result/result/state.Jason Zaugg2012-11-091-0/+52
Perhaps we should freshen them, but that will be a little awkward in our reify block.