@@ -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
@@ -116,34 +118,9 @@ trait TypesSupport:
116
118
inner(tpe, skipThisTypePrefix) :+ plain(" *" )
117
119
case AppliedType (repeatedClass, Seq (tpe)) if isRepeated(repeatedClass) =>
118
120
inner(tpe, skipThisTypePrefix) :+ plain(" *" )
119
- case tp @ AnnotatedType (tpe, annotTerm) =>
120
- val retainsSym = Symbol .requiredClass(" _root_.scala.annotation.retains" )
121
- val retainsCapSym = Symbol .requiredClass(" _root_.scala.annotation.retainsCap" )
122
- val retainsByNameSym = Symbol .requiredClass(" _root_.scala.annotation.retainsByName" )
123
- val retainsSym2 = Symbol .requiredClass(" scala.annotation.retains" )
124
- val retainsCapSym2 = Symbol .requiredClass(" scala.annotation.retainsCap" )
125
- val retainsByNameSym2 = Symbol .requiredClass(" scala.annotation.retainsByName" )
126
- val sym = annotTerm.tpe match
127
- case AppliedType (base, _) => base.typeSymbol
128
- case other => other.typeSymbol
129
- if sym.name.contains(" retains" ) then
130
- println(" Annot: " + sym)
131
- println(" name: " + sym.fullName)
132
- println(" id: " + System .identityHashCode(sym))
133
- println(" isClassDef: " + sym.isClassDef)
134
- println(" isRetains: " + sym == retainsSym)
135
- println(" isRetainsCap: " + sym == retainsCapSym)
136
- println(" isRetainsByName: " + sym == retainsByNameSym)
137
- println(" isRetains2: " + sym == retainsSym2)
138
- println(" isRetainsCap2: " + sym == retainsCapSym2)
139
- println(" isRetainsByName2: " + sym == retainsByNameSym2)
140
- println(" retainsSym " + retainsSym)
141
- println(" retainsSym2 " + retainsSym2)
142
- println(" retainsSym.isClassDef " + retainsSym.isClassDef)
143
- println(" retainsSym2.isClassDef " + retainsSym2.isClassDef)
144
- println(" retainsSym.id " + System .identityHashCode(retainsSym))
145
- println(" retainsSym2.id " + System .identityHashCode(retainsSym2))
146
- println()
121
+ case AnnotatedType (tpe, annotTerm) if annotTerm.isRetains =>
122
+ inner(tpe, skipThisTypePrefix) :+ plain(" @retains" ) // FIXME
123
+ case AnnotatedType (tpe, _) =>
147
124
inner(tpe, skipThisTypePrefix)
148
125
case tl @ TypeLambda (params, paramBounds, AppliedType (tpe, args))
149
126
if paramBounds.forall { case TypeBounds (low, hi) => low.typeSymbol == defn.NothingClass && hi.typeSymbol == defn.AnyClass }
0 commit comments