diff options
author | Dmitry Petrashko <dark@d-d.me> | 2016-02-12 23:32:53 +0100 |
---|---|---|
committer | Dmitry Petrashko <dark@d-d.me> | 2016-02-12 23:32:53 +0100 |
commit | afec2a7a597e6e7736e4d26620f8488e9587b7b0 (patch) | |
tree | 1a8747a5cbc53d667f8c32b8c082f637dea8300f | |
parent | 259cf1e2234a853ade180ec7452f78ece3b66bf8 (diff) | |
parent | d8227b493a89620b307b9ceb4357477a10312811 (diff) | |
download | dotty-afec2a7a597e6e7736e4d26620f8488e9587b7b0.tar.gz dotty-afec2a7a597e6e7736e4d26620f8488e9587b7b0.tar.bz2 dotty-afec2a7a597e6e7736e4d26620f8488e9587b7b0.zip |
Merge pull request #1080 from dotty-staging/fix-#619
Document dotty internal Annotations
-rw-r--r-- | src/dotty/annotation/internal/Alias.scala | 3 | ||||
-rw-r--r-- | src/dotty/annotation/internal/AnnotationDefault.scala | 1 | ||||
-rw-r--r-- | src/dotty/annotation/internal/Child.scala | 5 | ||||
-rw-r--r-- | src/dotty/annotation/internal/Repeated.scala | 5 |
4 files changed, 11 insertions, 3 deletions
diff --git a/src/dotty/annotation/internal/Alias.scala b/src/dotty/annotation/internal/Alias.scala index de51153f1..8be83960f 100644 --- a/src/dotty/annotation/internal/Alias.scala +++ b/src/dotty/annotation/internal/Alias.scala @@ -2,6 +2,9 @@ package dotty.annotation.internal import scala.annotation.Annotation +/** An annotation to record a Scala2 pickled alias. + * @param aliased A TermRef pointing to the aliased field. + */ class Alias(aliased: Any) extends Annotation { } diff --git a/src/dotty/annotation/internal/AnnotationDefault.scala b/src/dotty/annotation/internal/AnnotationDefault.scala index 90471b8fe..7409b2f96 100644 --- a/src/dotty/annotation/internal/AnnotationDefault.scala +++ b/src/dotty/annotation/internal/AnnotationDefault.scala @@ -2,6 +2,7 @@ package dotty.annotation.internal import scala.annotation.Annotation +/** An annotation to tag Java annotation default values */ class AnnotationDefault extends Annotation { } diff --git a/src/dotty/annotation/internal/Child.scala b/src/dotty/annotation/internal/Child.scala index ac253ed8d..23ff2a97c 100644 --- a/src/dotty/annotation/internal/Child.scala +++ b/src/dotty/annotation/internal/Child.scala @@ -2,6 +2,5 @@ package dotty.annotation.internal import scala.annotation.Annotation -class Child[T] extends Annotation { - -} +/** An annotation to indicate a child class or object of the annotated class. */ +class Child[T] extends Annotation diff --git a/src/dotty/annotation/internal/Repeated.scala b/src/dotty/annotation/internal/Repeated.scala index 3065b7a06..24adc051f 100644 --- a/src/dotty/annotation/internal/Repeated.scala +++ b/src/dotty/annotation/internal/Repeated.scala @@ -2,4 +2,9 @@ package dotty.annotation.internal import scala.annotation.Annotation +/** An annotation produced by desugaring to indicate that a + * sequence is a repeated parameter. I.e. + * + * T* is expanded by Desugar to Seq[T] @Repeated + */ final class Repeated() extends Annotation |