Fix bug in import directives converter (light tree to FIR)
This commit is contained in:
committed by
Mikhail Glukhikh
parent
1af7063a47
commit
084bad4c25
+2
-8
@@ -157,14 +157,8 @@ class DeclarationsConverter(
|
|||||||
var aliasName: String? = null
|
var aliasName: String? = null
|
||||||
importDirective.forEachChildren {
|
importDirective.forEachChildren {
|
||||||
when (it.tokenType) {
|
when (it.tokenType) {
|
||||||
DOT_QUALIFIED_EXPRESSION, REFERENCE_EXPRESSION -> {
|
DOT_QUALIFIED_EXPRESSION, REFERENCE_EXPRESSION -> importedFqName = FqName(it.getAsString())
|
||||||
var importName = it.getAsString()
|
MUL -> isAllUnder = true
|
||||||
if (importName.endsWith(".*")) {
|
|
||||||
isAllUnder = true
|
|
||||||
importName = importName.replace(".*", "")
|
|
||||||
}
|
|
||||||
importedFqName = FqName(importName)
|
|
||||||
}
|
|
||||||
IMPORT_ALIAS -> aliasName = convertImportAlias(it)
|
IMPORT_ALIAS -> aliasName = convertImportAlias(it)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user