FIR: rename FirResolvedImport.resolvedClassId|relativeClassName
These two fields references the parent of the import rather than the classes that are imported. For example ``` import java.util.Map // resolvedClassId -> null import java.util.Map.Entry // resolvedClassId -> java.util.Map import java.util.Map.* // resolvedClassId -> java.util.Map import java.util.Map.someStaticMethod // resolvedClassId -> java.util.Map import kotlin.package.someTopLevelFuntion // resolvedClassId -> null import kotlin.package.MyObject.someObjectFuntion // resolvedClassId -> kotlin.package.MyObject ```
This commit is contained in:
committed by
Ilya Kirillov
parent
e5b9d667c0
commit
211544e790
@@ -1803,7 +1803,7 @@ class HtmlFirDump internal constructor(private var linkResolver: FirLinkResolver
|
||||
ws
|
||||
when (import) {
|
||||
is FirResolvedImport -> {
|
||||
val classId = import.resolvedClassId
|
||||
val classId = import.resolvedParentClassId
|
||||
if (classId == null) {
|
||||
val importedFqName = import.importedFqName
|
||||
if (importedFqName != null) {
|
||||
|
||||
Reference in New Issue
Block a user