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
|
||||
importDirective.forEachChildren {
|
||||
when (it.tokenType) {
|
||||
DOT_QUALIFIED_EXPRESSION, REFERENCE_EXPRESSION -> {
|
||||
var importName = it.getAsString()
|
||||
if (importName.endsWith(".*")) {
|
||||
isAllUnder = true
|
||||
importName = importName.replace(".*", "")
|
||||
}
|
||||
importedFqName = FqName(importName)
|
||||
}
|
||||
DOT_QUALIFIED_EXPRESSION, REFERENCE_EXPRESSION -> importedFqName = FqName(it.getAsString())
|
||||
MUL -> isAllUnder = true
|
||||
IMPORT_ALIAS -> aliasName = convertImportAlias(it)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user