@@ -6,6 +6,8 @@ import scala.jdk.CollectionConverters._
6
6
import scala .quoted ._
7
7
import scala .util .control .NonFatal
8
8
9
+ import dotty .tools .scaladoc .cc .*
10
+
9
11
import NameNormalizer ._
10
12
import SyntheticsSupport ._
11
13
@@ -112,34 +114,9 @@ trait TypesSupport:
112
114
inner(tpe) :+ plain(" *" )
113
115
case AppliedType (repeatedClass, Seq (tpe)) if isRepeated(repeatedClass) =>
114
116
inner(tpe) :+ plain(" *" )
115
- case tp @ AnnotatedType (tpe, annotTerm) =>
116
- val retainsSym = Symbol .requiredClass(" _root_.scala.annotation.retains" )
117
- val retainsCapSym = Symbol .requiredClass(" _root_.scala.annotation.retainsCap" )
118
- val retainsByNameSym = Symbol .requiredClass(" _root_.scala.annotation.retainsByName" )
119
- val retainsSym2 = Symbol .requiredClass(" scala.annotation.retains" )
120
- val retainsCapSym2 = Symbol .requiredClass(" scala.annotation.retainsCap" )
121
- val retainsByNameSym2 = Symbol .requiredClass(" scala.annotation.retainsByName" )
122
- val sym = annotTerm.tpe match
123
- case AppliedType (base, _) => base.typeSymbol
124
- case other => other.typeSymbol
125
- if sym.name.contains(" retains" ) then
126
- println(" Annot: " + sym)
127
- println(" name: " + sym.fullName)
128
- println(" id: " + System .identityHashCode(sym))
129
- println(" isClassDef: " + sym.isClassDef)
130
- println(" isRetains: " + sym == retainsSym)
131
- println(" isRetainsCap: " + sym == retainsCapSym)
132
- println(" isRetainsByName: " + sym == retainsByNameSym)
133
- println(" isRetains2: " + sym == retainsSym2)
134
- println(" isRetainsCap2: " + sym == retainsCapSym2)
135
- println(" isRetainsByName2: " + sym == retainsByNameSym2)
136
- println(" retainsSym " + retainsSym)
137
- println(" retainsSym2 " + retainsSym2)
138
- println(" retainsSym.isClassDef " + retainsSym.isClassDef)
139
- println(" retainsSym2.isClassDef " + retainsSym2.isClassDef)
140
- println(" retainsSym.id " + System .identityHashCode(retainsSym))
141
- println(" retainsSym2.id " + System .identityHashCode(retainsSym2))
142
- println()
117
+ case AnnotatedType (tpe, annotTerm) if annotTerm.isRetains =>
118
+ inner(tpe) :+ plain(" @retains" ) // FIXME
119
+ case AnnotatedType (tpe, _) =>
143
120
inner(tpe)
144
121
case tl @ TypeLambda (params, paramBounds, AppliedType (tpe, args))
145
122
if paramBounds.map(inner).forall(_.isEmpty) && params.zip(args.map(inner).flatten.map(_.name)).forall(_ == _) =>
0 commit comments