Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Simplify attachCopy in TransformUtils | phaller | 2012-11-26 | 3 | -39/+14 |
| | | | | This refactoring removes a group of factory methods. | ||||
* | Remove modifiers of case class parameters | phaller | 2012-11-26 | 4 | -4/+4 |
| | |||||
* | Merge pull request #32 from phaller/topic/try-while | Philipp Haller | 2012-11-26 | 29 | -383/+660 |
|\ | | | | | Topic/try while | ||||
| * | Refactor some tree creation from Async to ExprBuilder. | Jason Zaugg | 2012-11-24 | 3 | -72/+89 |
| | | |||||
| * | Tiny aesthetic refactorings. | Jason Zaugg | 2012-11-24 | 2 | -14/+14 |
| | | |||||
| * | Refactoring to avoid unneeded mutable fields. | Jason Zaugg | 2012-11-24 | 1 | -34/+21 |
| | | | | | | | | Brings uniformity to the result generation of AsyncStateBuilder. | ||||
| * | Refactoring to use Awaitable | Jason Zaugg | 2012-11-24 | 1 | -19/+16 |
| | | | | | | | | Rather than three separate parameters. | ||||
| * | Refactor AsyncState heirarchy. | Jason Zaugg | 2012-11-24 | 1 | -34/+38 |
| | | | | | | | | | | No more extension from concrete classes; no more dummy values for nextState. | ||||
| * | More refactoring in ExprBuilder. | Jason Zaugg | 2012-11-24 | 1 | -41/+33 |
| | | | | | | | | | | | | - Moving some private methods out of the top-billing at the head of the file - Replace three nullable fields with one Option. | ||||
| * | Address a little duplication in ExprBuilder. | Jason Zaugg | 2012-11-24 | 1 | -20/+19 |
| | | |||||
| * | More small refactorings. | Jason Zaugg | 2012-11-24 | 3 | -27/+14 |
| | | | | | | | | Goal is to make ExprBuilder less cluttered. | ||||
| * | Refactor name substitution out of ExprBuilder. | Jason Zaugg | 2012-11-24 | 2 | -12/+17 |
| | | |||||
| * | Favouring composition over inheritance. | Jason Zaugg | 2012-11-24 | 5 | -31/+31 |
| | | |||||
| * | add missing copyright | Jason Zaugg | 2012-11-24 | 27 | -15/+64 |
| | | |||||
| * | Refine tracing of ANF. | Jason Zaugg | 2012-11-24 | 1 | -2/+3 |
| | | | | | | | | - show the AST on one line. | ||||
| * | Centralize naming. | Jason Zaugg | 2012-11-24 | 3 | -29/+33 |
| | | |||||
| * | Cleanup var lifting. | Jason Zaugg | 2012-11-24 | 2 | -33/+12 |
| | | | | | | | | | | Seeing as we know in advance the full set of lifted vars, we don't need to thread this information through ExprBuilder. | ||||
| * | Cleaner while rewriting | Jason Zaugg | 2012-11-24 | 2 | -21/+22 |
| | | | | | | | | | | | | | | -preserve LabelDef symbols to allow use of Symbol, rather than Names as map keys. -a label jump overwrites the nextState of an AsyncState. This is cleaner than inserting a return { state = 12; resume() }. | ||||
| * | Prohibit await in if condition (for now) | Jason Zaugg | 2012-11-24 | 6 | -20/+62 |
| | | | | | | | | | | | | Test nested loops. Control ANF tracing with another system property. | ||||
| * | Prohibit return. | Jason Zaugg | 2012-11-23 | 2 | -0/+14 |
| | | | | | | | | Closes #21 | ||||
| * | Explicitly prohibit await in nested methods. | Jason Zaugg | 2012-11-23 | 4 | -2/+19 |
| | | |||||
| * | Enable debug logging with a system property. | Jason Zaugg | 2012-11-23 | 2 | -5/+6 |
| | | |||||
| * | Support await in a while loop. | Jason Zaugg | 2012-11-23 | 7 | -43/+112 |
| | | |||||
| * | Test for await in while (currently forbidden). | Jason Zaugg | 2012-11-23 | 4 | -3/+40 |
| | | | | | | | | Lookup the ValDef symbol from Assign#rhs.symbol. | ||||
| * | Forbid await in try/catch. | Jason Zaugg | 2012-11-23 | 2 | -0/+40 |
| | | |||||
| * | Tightenen up modifiers and other refactoring. | Jason Zaugg | 2012-11-23 | 4 | -18/+13 |
| | | |||||
| * | Fix #31, Unfinished ANF transform | Jason Zaugg | 2012-11-23 | 5 | -12/+69 |
| | | | | | | | | | | | | | | | | Prepend {(); ... } before starting the ANF transform. Add tracing to the anf/inline transform. Also enables and addresses SIP-18 warnings. | ||||
| * | Move TestUtils contents directly into the package object. | Jason Zaugg | 2012-11-23 | 2 | -59/+42 |
| | | | | | | | | Why suffer SI-4695 needlessly? | ||||
* | | Merge pull request #30 from phaller/topic/pos | Philipp Haller | 2012-11-26 | 2 | -29/+79 |
|\| | | | | | Preserve positions and attachments. | ||||
| * | Fix scaladoc formatting. | Jason Zaugg | 2012-11-23 | 1 | -3/+3 |
| | | |||||
| * | Preserve positions and attachments. | Jason Zaugg | 2012-11-23 | 2 | -28/+78 |
| | | | | | | | | | | | | | | | | | | Not quite sure how to test this yet; the original trees coming from toolbox don't seem to come with position to start with. But this is a start. | ||||
* | | Merge pull request #28 from phaller/topic/uniquify | Philipp Haller | 2012-11-23 | 6 | -54/+117 |
|\| | | | | | Topic/uniquify | ||||
| * | Convert null check to an assert. | Jason Zaugg | 2012-11-23 | 1 | -5/+4 |
| | | | | | | | | We seem to be symful now. | ||||
| * | Ensure unique names for definitions in the async block. | Jason Zaugg | 2012-11-23 | 6 | -49/+113 |
| | | | | | | | | | | | | | | | | - transform the provided tree using reflect.internal.Symbols#Symbol.name_= and treeCopy.{Ident, Select}. - not sure if this is possible within the public Symbol API. - move checking for unsupported nested module/class to AsyncAnalysis. - make block merging selective (only do so if there are nested await calls.) | ||||
* | | Merge pull request #27 from phaller/ticket/26-match | Philipp Haller | 2012-11-23 | 9 | -245/+369 |
|\| | | | | | Ticket/26 match | ||||
| * | Minor refactoring in ANF transform. | Jason Zaugg | 2012-11-22 | 1 | -31/+27 |
| | | |||||
| * | Add TODO comment. | Jason Zaugg | 2012-11-22 | 1 | -1/+1 |
| | | |||||
| * | Make the ANF transform more selective. | Jason Zaugg | 2012-11-22 | 1 | -57/+52 |
| | | |||||
| * | Refactor the analyzers to a seprarate file. | Jason Zaugg | 2012-11-22 | 4 | -103/+114 |
| | | |||||
| * | Lookup await symbol in AsyncBase. | Jason Zaugg | 2012-11-22 | 1 | -3/+3 |
| | | |||||
| * | Comment. | Jason Zaugg | 2012-11-22 | 1 | -0/+2 |
| | | |||||
| * | Support match as an expression. | Jason Zaugg | 2012-11-22 | 8 | -152/+272 |
|/ | | | | | | | | - corrects detection of await calls in the ANF transform. - Split AsyncAnalyzer into two parts. Unsupported await detection must happen prior to the async transform to prevent the ANF lifting out by-name arguments to vals and hence changing the semantics. | ||||
* | Merge pull request #25 from phaller/topic/minimal-var-lifting-2 | Philipp Haller | 2012-11-22 | 10 | -102/+542 |
|\ | | | | | Topic/minimal var lifting 2 | ||||
| * | Cleanups and docs. | Jason Zaugg | 2012-11-22 | 4 | -123/+108 |
| | | | | | | | | | | - Move now-working duplicate definition tests from `neg` to `run`. - Renames and small code beautification around the var lifting analysis | ||||
| * | Remove unused imports. | Jason Zaugg | 2012-11-22 | 1 | -8/+4 |
| | | |||||
| * | Frugality is no longer required with state IDs. | Jason Zaugg | 2012-11-22 | 3 | -56/+52 |
| | | | | | | | | | | | | Change the way state IDs are allocated to avoid the need to ration them out. Also make the logging tolerant of a toolbox setting that doesn't have a source file. | ||||
| * | Minimize lifting of vars. | Jason Zaugg | 2012-11-22 | 3 | -72/+68 |
| | | |||||
| * | Preserve ValDef symbol. | Jason Zaugg | 2012-11-21 | 3 | -2/+8 |
| | | |||||
| * | Only transform if/match-s that contain an await. | Jason Zaugg | 2012-11-21 | 5 | -6/+167 |
| | | | | | | | | | | | | Accurate reporting of misplaced awaits. Attempt to collect the minimal set of vars to lift. | ||||
| * | Slight simplification of in-flight type checking. | Jason Zaugg | 2012-11-21 | 2 | -7/+6 |
| | |