aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/annotation
Commit message (Collapse)AuthorAgeFilesLines
* Use BodyAnnot to indicate rhs of inline methodMartin Odersky2016-10-021-0/+8
| | | | | | Since fundamental operations such as treeCopy have to know about inline bodies, it seems better to represent this information directly in an annotation.
* Add inline for valsMartin Odersky2016-10-021-0/+6
| | | | | | | | | | - allow inline as an alternative to final for vals (final is retained for backwards compatibility for now) - allow inline for parameters - check that rhs of inline value has a constant type - check that arguments to inline value parameters have constant type - check that inline members are not deferred - make inline members effectively final
* Make inline annotation @scala.inline.Martin Odersky2016-10-021-8/+0
| | | | | | | | | | | | | | | | | | 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.
* First version of inline schemeMartin Odersky2016-10-021-0/+8
| | | | | To be done: outer accessors To be done: error positions
* Further improve doc commentMartin Odersky2016-05-231-2/+3
|
* Better doc commentMartin Odersky2016-05-191-1/+10
|
* Add source file for SourceFile annotationMartin Odersky2016-04-081-0/+10
|
* Document dotty internal AnnotationsMartin Odersky2016-02-124-3/+11
|
* Make asSeenFrom idempotentMartin Odersky2015-12-211-0/+8
| | | | | | Let asSeenFrom generate a marker annotated type for any unsafe instantiation. Then cleanup in typedSelect.
* Make all Dotty source files end in newline.Dmitry Petrashko2015-04-094-4/+4
|
* Changed handling of repeated parameters.Martin Odersky2014-05-081-0/+5
| | | | | | | | | | | | | | Previously, repeated parameters were typed as `<repeated>[T]`. The method `underlyingWithRepeated` converts `<repeated>[T]` to `Seq[T]`. This method was called in typedIdent, but the call was ineffective because the type of a repeated parameter ident is a TermRef. This led to a retyping error in Decorators.scala under -Ycheck:front. We now distinguish between the type of the internal parameter ValDef and the type of the parameter in the MethodType. The former has the type `Seq[T] @dotty.annotation.internal.repeated`, the latter has the type `<repeated>[T]`. The translation with `underlyingWithRepeated` thus becomes unneccessary.
* Integrated new treatment of higher-kinded types with Unpickler.Martin Odersky2013-06-073-9/+0
| | | | Could drop quite a bit of code in the process.
* More changes for higher-kinded types emulation.Martin Odersky2013-03-183-0/+9
|
* Defining standard dotty classes used in Definitions.Martin Odersky2013-03-143-0/+21