summaryrefslogtreecommitdiff
path: root/test/files/pos/delambdafy-patterns.scala
Commit message (Collapse)AuthorAgeFilesLines
* Fix 36 typos (d-f)Janek Bogucki2015-06-211-1/+1
|
* Flesh out the Delambdafy phase.James Iry2013-11-061-0/+15
This commit puts a real body on the Delambdafy phase. From a lambda, Delambdafy will create 1) a static forwarder at the top level of the class that contained the lambda 2) a new top level class that a) has fields and a constructor taking the captured environment (including possbily the "this" reference) b) an apply method that calls the static forwarder c) if needed a bridge method for the apply method 3) an instantiation of the newly created class which replaces the lambda Trees.scala is modified to add two more convenient factories for templates and classdefs. A few basic tests are included to verify that it works as expected. Further commits will have additional tests.