Skip to content

Commit afec2a7

Browse files
committed
Merge pull request #1080 from dotty-staging/fix-#619
Document dotty internal Annotations
2 parents 259cf1e + d8227b4 commit afec2a7

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

src/dotty/annotation/internal/Alias.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ package dotty.annotation.internal
22

33
import scala.annotation.Annotation
44

5+
/** An annotation to record a Scala2 pickled alias.
6+
* @param aliased A TermRef pointing to the aliased field.
7+
*/
58
class Alias(aliased: Any) extends Annotation {
69

710
}

src/dotty/annotation/internal/AnnotationDefault.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package dotty.annotation.internal
22

33
import scala.annotation.Annotation
44

5+
/** An annotation to tag Java annotation default values */
56
class AnnotationDefault extends Annotation {
67

78
}

src/dotty/annotation/internal/Child.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@ package dotty.annotation.internal
22

33
import scala.annotation.Annotation
44

5-
class Child[T] extends Annotation {
6-
7-
}
5+
/** An annotation to indicate a child class or object of the annotated class. */
6+
class Child[T] extends Annotation

src/dotty/annotation/internal/Repeated.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,9 @@ package dotty.annotation.internal
22

33
import scala.annotation.Annotation
44

5+
/** An annotation produced by desugaring to indicate that a
6+
* sequence is a repeated parameter. I.e.
7+
*
8+
* T* is expanded by Desugar to Seq[T] @Repeated
9+
*/
510
final class Repeated() extends Annotation

0 commit comments

Comments
 (0)