@@ -19,7 +19,7 @@ object ImportInfo {
19
19
val selectors = untpd.Ident (nme.WILDCARD ) :: Nil
20
20
def expr (implicit ctx : Context ) = tpd.Ident (refFn())
21
21
def imp (implicit ctx : Context ) = tpd.Import (importDelegate = importDelegate, expr, selectors)
22
- new ImportInfo (implicit ctx => imp.symbol, selectors, None , importDelegate = importDelegate, isRootImport = true )
22
+ new ImportInfo (imp.symbol, selectors, None , importDelegate = importDelegate, isRootImport = true )
23
23
}
24
24
}
25
25
@@ -32,7 +32,7 @@ object ImportInfo {
32
32
* @param isRootImport true if this is one of the implicit imports of scala, java.lang,
33
33
* scala.Predef or dotty.DottyPredef in the start context, false otherwise.
34
34
*/
35
- class ImportInfo (symf : Context => Symbol , val selectors : List [untpd.Tree ],
35
+ class ImportInfo (symf : given Context => Symbol , val selectors : List [untpd.Tree ],
36
36
symNameOpt : Option [TermName ],
37
37
val importDelegate : Boolean ,
38
38
val isRootImport : Boolean = false ) extends Showable {
@@ -41,7 +41,7 @@ class ImportInfo(symf: Context => Symbol, val selectors: List[untpd.Tree],
41
41
// that we cannot use one for `DottyPredefModuleRef`.
42
42
def sym (implicit ctx : Context ): Symbol = {
43
43
if (mySym == null ) {
44
- mySym = symf( ctx)
44
+ mySym = symf given ctx
45
45
assert(mySym != null )
46
46
}
47
47
mySym
0 commit comments