diff options
author | Martin Odersky <odersky@gmail.com> | 2015-06-08 13:30:58 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-06-08 13:30:58 +0200 |
commit | 2ce940ad11786aae4486f37fb5f17bfc4d6e6589 (patch) | |
tree | 4109c6c22ca69af128159682706896316c04a7c3 /src/dotty/tools/dotc/core/Definitions.scala | |
parent | 291aecabf400df4a85af498d1045b9ec618dda13 (diff) | |
download | dotty-2ce940ad11786aae4486f37fb5f17bfc4d6e6589.tar.gz dotty-2ce940ad11786aae4486f37fb5f17bfc4d6e6589.tar.bz2 dotty-2ce940ad11786aae4486f37fb5f17bfc4d6e6589.zip |
Copy @field annotations from getters to fields.
For the moment, we keep all annotations on getters and setters, but this could be changed.
Diffstat (limited to 'src/dotty/tools/dotc/core/Definitions.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Definitions.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/core/Definitions.scala b/src/dotty/tools/dotc/core/Definitions.scala index 1c4d5c282..fdeee82de 100644 --- a/src/dotty/tools/dotc/core/Definitions.scala +++ b/src/dotty/tools/dotc/core/Definitions.scala @@ -346,6 +346,9 @@ class Definitions { lazy val UncheckedStableAnnot = ctx.requiredClass("scala.annotation.unchecked.uncheckedStable") lazy val UncheckedVarianceAnnot = ctx.requiredClass("scala.annotation.unchecked.uncheckedVariance") lazy val VolatileAnnot = ctx.requiredClass("scala.volatile") + lazy val FieldMetaAnnot = ctx.requiredClass("scala.annotation.meta.field") + lazy val GetterMetaAnnot = ctx.requiredClass("scala.annotation.meta.getter") + lazy val SetterMetaAnnot = ctx.requiredClass("scala.annotation.meta.setter") // convenient one-parameter method types def methOfAny(tp: Type) = MethodType(List(AnyType), tp) |