From 856f084c474125117ed2166720ba4192d358fbef Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Wed, 27 Feb 2013 09:12:27 +0100 Subject: Filling in all ???s Added reporters. Added context for signatures. Implemented method signatures via erasure. Refined derivedNameType handling. --- src/dotty/tools/dotc/core/Annotations.scala | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/dotty/tools/dotc/core/Annotations.scala') diff --git a/src/dotty/tools/dotc/core/Annotations.scala b/src/dotty/tools/dotc/core/Annotations.scala index 3c8e02d8f..ff05c9faa 100644 --- a/src/dotty/tools/dotc/core/Annotations.scala +++ b/src/dotty/tools/dotc/core/Annotations.scala @@ -9,6 +9,9 @@ object Annotations { def symbol(implicit ctx: Context): Symbol = tree.tpe.typeSymbol def matches(cls: Symbol)(implicit ctx: Context): Boolean = symbol.isNonBottomSubClass(cls) def appliesToModule: Boolean = true // for now; see remark in SymDenotations + + def derivedAnnotation(tree: Tree) = + if (tree eq this.tree) this else Annotation(tree) } case class ConcreteAnnotation(val tree: Tree) extends Annotation @@ -42,12 +45,6 @@ object Annotations { apply(defn.ChildAnnot, List(Ident(NamedType(sym.owner.thisType, sym.name)))) } - def makeLiteralAnnotArg(const: Constant): Tree = ??? - - def makeArrayAnnotArg(elems: Array[Tree]): Tree = ??? - - def makeNestedAnnotArg(annot: Annotation): Tree = annot.tree - def ThrowsAnnotation(cls: ClassSymbol)(implicit ctx: Context) = Annotation(defn.ThrowsAnnot, Ident(cls.symbolicRef)) } \ No newline at end of file -- cgit v1.2.3