aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge pull request #28 from scala/topic/cleanupsPhilipp Haller2013-08-146-40/+30
|\ \ | | | | | | Collection of clean-ups
| * | Collection of clean-upsPhilipp Haller2013-08-146-40/+30
|/ / | | | | | | | | | | - removed outdated comments in ANF transform - added a few comments - removed some unnecessary imports
* | Merge pull request #27 from retronym/topic/typed-transform-2Philipp Haller2013-08-1438-1391/+1629
|\| | | | | Typeful transformations
| * Don't set the body of If to the original type.Jason Zaugg2013-08-071-3/+3
| | | | | | | | Tweak the way we set tpe = Unit in matches.
| * Remove unneeded special case in ANF transform.Jason Zaugg2013-08-071-2/+0
| | | | | | | | Obsolete now that we carry all the types around.
| * Remove obsolete TODO comment.Jason Zaugg2013-08-071-2/+1
| |
| * Set the type of case bodies to Unit after ANF.Jason Zaugg2013-08-072-1/+15
| | | | | | | | Avoids runtime errors like: "java.lang.Double cannot be cast to scala.runtime.BoxedUnit"
| * Disallow await in pattern guards (for now)Jason Zaugg2013-07-252-0/+13
| |
| * Preserve ApplyImplicitView / ApplyImplicitArgs in AnfTransform.Jason Zaugg2013-07-254-13/+37
| |
| * Test case for await in an Assign node.Jason Zaugg2013-07-241-0/+11
| | | | | | | | This case already works.
| * Support await in Typed nodes.Jason Zaugg2013-07-242-0/+12
| |
| * Support await in throws.Jason Zaugg2013-07-243-2/+18
| | | | | | | | | | Also support AsyncId.async[Nothing], which was triggering a NPE in the generated `null.asInstanceOf[Nothing]`.
| * Comply with range position checking.Jason Zaugg2013-07-116-14/+23
| | | | | | | | | | | | | | | | | | - Make sure all trees are positioned - Mark range positions for synthetic code as transparent to allow some wiggle room for overlapping ranges. Enables -Yrangepos for our test suite. We can't add it for the entire build until the fix for SI-7649 lands in the compiler.
| * Fix "BoxedUnit cannot be cast to String" error.Jason Zaugg2013-07-092-3/+24
| | | | | | | | | | When convering If and Match nodes to ANF, set the type to Unit. Otherwise, erasure might end up casting BoxedUnit to a real type.
| * Move implementation details to scala.async.internal._.Jason Zaugg2013-07-0727-140/+166
| | | | | | | | | | If we intend to keep CPS fallback around for any length of time it should probably move there too.
| * Fix another interation with existentials and a name clash.Jason Zaugg2013-07-075-8/+61
| |
| * An overdue overhaul of macro internals.Jason Zaugg2013-07-0318-998/+1021
| | | | | | | | | | | | | | | | | | | | | | | | - Avoid reset + retypecheck, instead hang onto the original types/symbols - Eliminated duplication between AsyncDefinitionUseAnalyzer and ExprBuilder - Instead, decide what do lift *after* running ExprBuilder - Account for transitive references local classes/objects and lift them as needed. - Make the execution context an regular implicit parameter of the macro - Fixes interaction with existential skolems and singleton types Fixes #6, #13, #16, #17, #19, #21.
| * Avoid hardcoded "2.10" in tests.Jason Zaugg2013-07-022-4/+19
| | | | | | | | This allows us to cross build against 2.10.x and 2.11.x.
| * Build maintainenceJason Zaugg2013-07-023-4/+8
|/ | | | | | | | | | | - Update to SBT 0.12.4 - Update to Scala 2.10.2 - Provide a means to disable test compilation (other then TreeInterrogation) This is handy when doing major renovations to the macro implementation. - Explicitly depend on scala-compiler (we'll need that in the next commit) - Declare the dependencies on scala-{reflect, compiler} as "provided" to avoid adding them the runtime classpath of upstream projects. They are only needed at compile time.
* Merge pull request #18 from lrytz/typoJason Zaugg2013-04-291-1/+1
|\ | | | | call setSymbol only on outermost Apply for multi-arg-list applications
| * call setSymbol only on outermost Apply for multi-arg-list applicationsLukas Rytz2013-04-291-1/+1
|/ | | | fixes a typo in 5a0b1918
* Merge pull request #14 from lrytz/cleanupsJason Zaugg2013-04-271-13/+14
|\ | | | | minor cleanups accumulated while reading the code
| * minor cleanups accumulated while reading the codeLukas Rytz2013-04-271-13/+14
|/
* Merge pull request #12 from retronym/topic/compile-time-onlyJason Zaugg2013-04-202-3/+3
|\ | | | | Mark `await` as @compileTimeOnly
| * Mark `await` as @compileTimeOnlyJason Zaugg2013-04-172-3/+3
|/ | | | | | Rather than as @deprecated. This commit means we can no longer build against 2.10.0.
* Merge pull request #9 from retronym/ticket/4-multi-paramPhilipp Haller2013-04-174-74/+134
|\ | | | | Allow await in applications with multiple argument lists
| * Rephrase a few pattern matches, fix ANF tracing.Jason Zaugg2013-04-152-11/+9
| | | | | | | | Addresses review comments
| * Allow await in applications with multiple argument listsJason Zaugg2013-04-114-70/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before, we levied an implementation restriction to prevent this. As it turned out, that needlessly prevented use of `await` in the receiver of a multi-param-list application. This commit lifts the restriction altogether, and treats such applications holistically, being careful to preserve the left-to-right evaluation order of arguments in the translated code. - use `TreeInfo.Applied` and `Type#paramss` from `reflect.internal` to get the info we need - use the parameter name for the lifted argument val, rather than `argN` - encapsulate handling of by-name-ness and parameter names in `mapArgumentss` - test for evaluation order preservation
* | Merge pull request #10 from phaller/topic/cps-depPhilipp Haller2013-04-1310-67/+244
|\ \ | | | | | | Remove CPS dependency from default async implementation
| * | Remove CPS dependency from default async implementationPhilipp Haller2013-04-1210-67/+244
|/ / | | | | | | | | | | - move all CPS-related code to `continuations` sub package - fix CPS-based async implementation - enable testing of CPS-based async implementation
* | Merge pull request #7 from retronym/topic/scala-2.10.1Jason Zaugg2013-04-118-20/+43
|\ \ | | | | | | Scala 2.10.1 compatibility
| * | Avoid needless Unit literal as the expression of a Block.Jason Zaugg2013-04-111-1/+1
| |/ | | | | | | We've got a perfectly good expression at hand.
| * Scala 2.10.1 compat: apply renaming to originals of TypeTreesJason Zaugg2013-04-102-18/+22
| | | | | | | | This time in the ANF/Inline transformation.
| * Scala 2.10.1 compat: account for change in PartialFunction synthesis.Jason Zaugg2013-04-102-22/+28
| | | | | | | | | | | | | | | | | | | | | | Since SI-6187, the default case of a partial function is now included in the tree. Before, it was a tree attachment, conditionally inserted in the pattern matcher. I had hoped that that change would allow us to do away with `RestorePatternMatchingFunctions` altogether, but it seems that we aren't so lucky. Instead, I've adapted that transformer to account for the new scheme.
| * Scala 2.10.1 compat: apply renaming to originals of TypeTreesJason Zaugg2013-04-103-19/+27
| |
| * Temporarily comment out tests that are failing under 2.10.1.Jason Zaugg2013-04-104-61/+66
| |
| * Address lint warnings.Jason Zaugg2013-04-101-2/+2
| |
| * Address deprecation warnings in Scala 2.10.1Jason Zaugg2013-04-104-10/+10
|/
* Merge pull request #2 from viktorklang/patch-1Philipp Haller2013-04-031-1/+1
|\ | | | | Update README.md
| * Update README.mdViktor Klang (√)2013-04-031-1/+1
| | | | | | Technically line 5 is very blocking.
* | Merge pull request #1 from xuwei-k/fix-github-urlPhilipp Haller2013-04-032-8/+8
|\ \ | |/ |/| fix github url
| * fix github urlxuwei-k2013-04-042-8/+8
|/
* Bump Scala version to 2.10.0Philipp Haller2013-02-051-2/+2
|
* s/LHS/RHSJason Zaugg2012-12-201-1/+1
|
* Update version for M1 releasephaller2012-12-201-1/+1
|
* Bump Scala version to latest RCphaller2012-12-201-1/+1
|
* Remove unreachable code in pattern matching testphaller2012-12-201-1/+0
|
* Fix typos in READMEphaller2012-12-201-12/+12
|
* Resolve merge conflictphaller2012-12-195-17/+93
|\
| * New fix for #1861: Add fall-back to CPS for all unsupported uses of awaitphaller2012-12-195-16/+93
| | | | | | | | | | | | | | This is a re-implementation of a previous fix. It is more modular, since it enables the definition of a CPS-based fall-back as a subclass of `AsyncBase`. Thus, it's possible to define fall-back-enabled subclasses of `AsyncBase` targetting not only Scala Futures.