File tree 2 files changed +8
-10
lines changed
scala3doc/src/dotty/dokka/tasty
scala3doc-testcases/src/tests 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 5
5
def defInt : Int = 1
6
6
@ deprecated(message = " 1" )
7
7
def def1 : 1 = 1
8
- @ deprecated
8
+ @ deprecated( " reason " )
9
9
val valInt : Int = 1
10
10
val val1 : 1 = 1
11
11
var varInt : Int = 1
Original file line number Diff line number Diff line change @@ -17,19 +17,17 @@ trait BasicSupport:
17
17
val dri = annotTerm.tpe.typeSymbol.dri
18
18
val params = annotTerm match
19
19
case Apply (target, appliedWith) => {
20
- appliedWith.map {
21
- case Literal (constant) => Annotation .PrimitiveParameter (None , constant.value match {
20
+ appliedWith.flatMap {
21
+ case Literal (constant) => Some ( Annotation .PrimitiveParameter (None , constant.value match {
22
22
case s : String => " \" " + s " $s" + " \" "
23
23
case other => other.toString()
24
- })
25
- case NamedArg (name, Literal (constant)) => Annotation .PrimitiveParameter (Some (name), constant.value match
24
+ }))
25
+ case NamedArg (name, Literal (constant)) => Some ( Annotation .PrimitiveParameter (Some (name), constant.value match
26
26
case s : String => " \" " + s " $s" + " \" "
27
27
case other => other.toString()
28
- )
29
- case x @ Select (qual, name) =>
30
- val dri = qual.tpe.termSymbol.companionClass.dri
31
- Annotation .LinkParameter (None , dri, s " ${dri.getClassNames}. $name" ) // TODO this is a nasty hack!
32
- case other => Annotation .UnresolvedParameter (None , other.show)
28
+ ))
29
+ case x @ Select (qual, name) => None
30
+ case other => Some (Annotation .UnresolvedParameter (None , other.show))
33
31
}
34
32
}
35
33
You can’t perform that action at this time.
0 commit comments