Skip to content

Document dotty internal Annotations #1080

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 12, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/dotty/annotation/internal/Alias.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

}
1 change: 1 addition & 0 deletions src/dotty/annotation/internal/AnnotationDefault.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package dotty.annotation.internal

import scala.annotation.Annotation

/** An annotation to tag Java annotation default values */
class AnnotationDefault extends Annotation {

}
5 changes: 2 additions & 3 deletions src/dotty/annotation/internal/Child.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions src/dotty/annotation/internal/Repeated.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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