aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Annotations.scala
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2016-03-08 14:14:00 +0100
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2016-03-08 14:14:00 +0100
commita068498201e7223f35e8801055645bd5b339ce67 (patch)
treebbede8dac232b6c585d70e32d10f079747d904ad /src/dotty/tools/dotc/core/Annotations.scala
parentead309423796f1a6ef59330112044b69ce719a58 (diff)
downloaddotty-a068498201e7223f35e8801055645bd5b339ce67.tar.gz
dotty-a068498201e7223f35e8801055645bd5b339ce67.tar.bz2
dotty-a068498201e7223f35e8801055645bd5b339ce67.zip
Replace addAnnotation(annotation) by addAnnotation(Annotation(annotation))
as asked in https://github.com/lampepfl/dotty/pull/1155/files#r55355664
Diffstat (limited to 'src/dotty/tools/dotc/core/Annotations.scala')
-rw-r--r--src/dotty/tools/dotc/core/Annotations.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/core/Annotations.scala b/src/dotty/tools/dotc/core/Annotations.scala
index b9c0eca43..2b27b5e01 100644
--- a/src/dotty/tools/dotc/core/Annotations.scala
+++ b/src/dotty/tools/dotc/core/Annotations.scala
@@ -47,6 +47,9 @@ object Annotations {
def apply(tree: Tree) = ConcreteAnnotation(tree)
+ def apply(cls: ClassSymbol)(implicit ctx: Context): Annotation =
+ apply(cls, Nil)
+
def apply(cls: ClassSymbol, arg: Tree)(implicit ctx: Context): Annotation =
apply(cls, arg :: Nil)