We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
moduleClass
IndexedContext
1 parent 6c37729 commit 2531498Copy full SHA for 2531498
presentation-compiler/src/main/dotty/tools/pc/IndexedContext.scala
@@ -5,6 +5,7 @@ import scala.util.control.NonFatal
5
6
import dotty.tools.dotc.core.Contexts.*
7
import dotty.tools.dotc.core.Flags.*
8
+import dotty.tools.dotc.core.NameOps.moduleClassName
9
import dotty.tools.dotc.core.Names.*
10
import dotty.tools.dotc.core.Symbols.*
11
import dotty.tools.dotc.core.Types.*
@@ -170,7 +171,11 @@ object IndexedContext:
170
171
initial ++ fromPackageObjects
172
173
def fromImport(site: Type, name: Name)(using Context): List[Symbol] =
- List(site.member(name.toTypeName), site.member(name.toTermName))
174
+ List(
175
+ site.member(name.toTypeName),
176
+ site.member(name.toTermName),
177
+ site.member(name.moduleClassName),
178
+ )
179
.flatMap(_.alternatives)
180
.map(_.symbol)
181
0 commit comments