diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2014-01-28 19:37:59 +0300 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2014-02-14 14:19:44 +0100 |
commit | 0268e03cb461b0c7e8ae2082894988395fc0994a (patch) | |
tree | 7dec4c177aad62a2209601a0f5327e243c3340b2 /src/reflect/scala/reflect/internal/StdNames.scala | |
parent | c7fd03900b7023967f22932f1f32b98d57983e9b (diff) | |
download | scala-0268e03cb461b0c7e8ae2082894988395fc0994a.tar.gz scala-0268e03cb461b0c7e8ae2082894988395fc0994a.tar.bz2 scala-0268e03cb461b0c7e8ae2082894988395fc0994a.zip |
SI-8118 simplifies Annotation down to a plain Tree
As per https://groups.google.com/forum/#!topic/scala-internals/8v2UL-LR9yY,
annotations don’t have to be represented as AnnotationInfos and can be
reduced to plain Trees.
Due to compatibility reasons and because of the limitations of the cake
pattern used in implementing current version of Reflection, we can’t
just say `type Annotation = Tree`, however what we can definitely do is
to deprecate all the methods on Annotation and expose `tree: Tree` instead.
Diffstat (limited to 'src/reflect/scala/reflect/internal/StdNames.scala')
-rw-r--r-- | src/reflect/scala/reflect/internal/StdNames.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/reflect/scala/reflect/internal/StdNames.scala b/src/reflect/scala/reflect/internal/StdNames.scala index 71c4009a62..01df1d6003 100644 --- a/src/reflect/scala/reflect/internal/StdNames.scala +++ b/src/reflect/scala/reflect/internal/StdNames.scala @@ -575,6 +575,7 @@ trait StdNames { val Annotation: NameType = "Annotation" val Any: NameType = "Any" val AnyVal: NameType = "AnyVal" + val Apply: NameType = "Apply" val ArrayAnnotArg: NameType = "ArrayAnnotArg" val ConstantType: NameType = "ConstantType" val EmptyPackage: NameType = "EmptyPackage" @@ -588,6 +589,7 @@ trait StdNames { val LiteralAnnotArg: NameType = "LiteralAnnotArg" val Modifiers: NameType = "Modifiers" val NestedAnnotArg: NameType = "NestedAnnotArg" + val New: NameType = "New" val NoFlags: NameType = "NoFlags" val NoSymbol: NameType = "NoSymbol" val NoMods: NameType = "NoMods" |