File tree 4 files changed +7
-8
lines changed
scaladoc/src/dotty/tools/scaladoc/tasty
4 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ trait TypesSupport:
75
75
else inner(tpe) ++ plain(" ." ).l ++ suffix
76
76
case tpe => inner(tpe)
77
77
78
- // TODO #23 add support for all types signatures that makes sense
78
+ // TODO #23 add support for all types signatures that make sense
79
79
private def inner (
80
80
using Quotes ,
81
81
)(
@@ -87,7 +87,7 @@ trait TypesSupport:
87
87
): SSignature =
88
88
import reflect ._
89
89
def noSupported (name : String ): SSignature =
90
- println (s " WARN: Unsupported type: $name: ${tp.show}" )
90
+ report.warning (s " Unsupported type: $name: ${tp.show}" )
91
91
plain(s " Unsupported[ $name] " ).l
92
92
tp match
93
93
case OrType (left, right) =>
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ abstract class MarkupConversion[T](val repr: Repr)(using dctx: DocContext) {
112
112
case None => sym.dri
113
113
DocLink .ToDRI (dri, targetText)
114
114
case None =>
115
- val txt = s " No DRI found for query"
115
+ val txt = s " Couldn't resolve a member for the given link query"
116
116
val msg = s " $txt: $queryStr"
117
117
118
118
if (! summon[DocContext ].args.noLinkWarnings) then
Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ trait MemberLookup {
31
31
def nearestPackage (sym : Symbol ): Symbol =
32
32
if sym.flags.is(Flags .Package ) then sym else nearestPackage(sym.owner)
33
33
34
- def nearestMembered (sym : Symbol ): Symbol =
35
- if sym.isClassDef || sym.flags.is(Flags .Package ) then sym else nearestMembered (sym.owner)
34
+ def nearestMember (sym : Symbol ): Symbol =
35
+ if sym.isClassDef || sym.flags.is(Flags .Package ) then sym else nearestMember (sym.owner)
36
36
37
37
val res : Option [(Symbol , String , Option [Symbol ])] = {
38
38
def toplevelLookup (querystrings : List [String ]) =
@@ -43,7 +43,7 @@ trait MemberLookup {
43
43
44
44
ownerOpt match {
45
45
case Some (owner) =>
46
- val nearest = nearestMembered (owner)
46
+ val nearest = nearestMember (owner)
47
47
val nearestCls = nearestClass(owner)
48
48
val nearestPkg = nearestPackage(owner)
49
49
def relativeLookup (querystrings : List [String ], owner : Symbol ): Option [(Symbol , Option [Symbol ])] = {
Original file line number Diff line number Diff line change @@ -5,8 +5,7 @@ import scala.collection.{Seq => _, _}
5
5
// import representations._
6
6
7
7
/** A body of text. A comment has a single body, which is composed of
8
- * at least one block. Inside every body is exactly one summary (see
9
- * [[scala.tools.nsc.doc.model.comment.Summary ]]). */
8
+ * at least one block. Inside every body is exactly one summary. */
10
9
final case class Body (blocks : Seq [Block ]) {
11
10
12
11
/** The summary text of the comment body. */
You can’t perform that action at this time.
0 commit comments