@@ -47,11 +47,6 @@ object Annotations {
47
47
/** The tree evaluation has finished. */
48
48
def isEvaluated : Boolean = true
49
49
50
- /** The annotation should be part of mappings?
51
- * Currently overridden only in ConcreteAnnotation, which simulates the previous behavior.
52
- */
53
- def isMappable : Boolean = false
54
-
55
50
/** Normally, map type map over all tree nodes of this annotation, but can
56
51
* be overridden. Returns EmptyAnnotation if type type map produces a range
57
52
* type, since ranges cannot be types of trees.
@@ -83,7 +78,6 @@ object Annotations {
83
78
84
79
case class ConcreteAnnotation (t : Tree ) extends Annotation {
85
80
def tree (using Context ): Tree = t
86
- override def isMappable = true
87
81
override def argsText (printer : Printer ): Text =
88
82
def toTextArg (arg : Tree ): Text = arg match
89
83
case Typed (SeqLiteral (elems, _), _) => printer.toTextGlobal(elems, " , " )
@@ -143,6 +137,7 @@ object Annotations {
143
137
if (tree eq this .tree) this else ConcreteBodyAnnotation (tree)
144
138
override def arguments (using Context ): List [Tree ] = Nil
145
139
override def ensureCompleted (using Context ): Unit = ()
140
+ override def mapWith (tm : TypeMap )(using Context ) = this
146
141
}
147
142
148
143
class ConcreteBodyAnnotation (body : Tree ) extends BodyAnnotation {
0 commit comments