File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -5,12 +5,12 @@ import scala.quoted._
5
5
6
6
trait MemberLookup {
7
7
8
- def lookup (using Quotes )(
8
+ def lookup (using Quotes , DocContext )(
9
9
query : Query ,
10
10
owner : quotes.reflect.Symbol ,
11
11
): Option [(quotes.reflect.Symbol , String )] = lookupOpt(query, Some (owner))
12
12
13
- def lookupOpt (using Quotes )(
13
+ def lookupOpt (using Quotes , DocContext )(
14
14
query : Query ,
15
15
ownerOpt : Option [quotes.reflect.Symbol ],
16
16
): Option [(quotes.reflect.Symbol , String )] =
@@ -79,8 +79,8 @@ trait MemberLookup {
79
79
catch
80
80
case e : Exception =>
81
81
// TODO (https://github.com/lampepfl/scala3doc/issues/238): proper reporting
82
- println( s " [WARN] Unable to find a link for ${query} ${ownerOpt.fold(" " )(o => " in " + o.name)}" )
83
- e.printStackTrace( )
82
+ val msg = s " Unable to find a link for ${query} ${ownerOpt.fold(" " )(o => " in " + o.name)}"
83
+ report.warn(msg, e )
84
84
None
85
85
86
86
private def hackMembersOf (using Quotes )(rsym : quotes.reflect.Symbol ) = {
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ import dotty.tools.scaladoc.tasty.util._
9
9
10
10
class LookupTestCases [Q <: Quotes ](val q : Quotes ) {
11
11
12
+ given DocContext = testDocContext()
13
+
12
14
def testAll (): Unit = {
13
15
testOwnerlessLookup()
14
16
testOwnedLookup()
You can’t perform that action at this time.
0 commit comments