diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2016-03-08 14:14:00 +0100 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2016-03-08 14:14:00 +0100 |
commit | a068498201e7223f35e8801055645bd5b339ce67 (patch) | |
tree | bbede8dac232b6c585d70e32d10f079747d904ad /src/dotty/tools/dotc/core/Annotations.scala | |
parent | ead309423796f1a6ef59330112044b69ce719a58 (diff) | |
download | dotty-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.scala | 3 |
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) |