aboutsummaryrefslogtreecommitdiff
path: root/tests/run/inline
Commit message (Collapse)AuthorAgeFilesLines
* Make inline a keywordMartin Odersky2016-10-021-7/+5
| | | | | | | `inline` is now a modifier keyword. To keep disruption tolerable, we still allow `@inline` as an annotation as well. Other uses of `inline` are supported only under `-language:Scala2` and are rewritten to identifiers in backticks.
* Make inline annotation @scala.inline.Martin Odersky2016-10-021-5/+5
| | | | | | | | | | | | | | | | | | Drop @dotty.annotation.inline. This will inline all @inline marked methods in Scala for which a body is known (i.e. that are either compiled in the same run or have Tasty trees available). Option -Yno-inline suppresses inlining. This is needed for the moment because some @inline methods access private members or members that are otherwise inaccessible at the call-site. Also fixes some problems in Inliner - make sure type arguments to inline calls re fully defined - don't forget recursive calls in typeMap - don't forget positions in treeMap - drop dead code dealing with outer.
* Handle outer this in InlinerMartin Odersky2016-10-022-2/+6
| | | | Also, do some refactorings and fix some bugs in Inliner.
* Support separate compilationMartin Odersky2016-10-022-0/+60
Inline trees can now be read form TASTY. However, positions are not set correctly. This remains to be implemented.