[FE 1.0] Fix new compilation warnings after #KT-63208
This commit is contained in:
committed by
Space Team
parent
8bfc4675c4
commit
dc0f4e6995
@@ -100,7 +100,7 @@ class LazyTopDownAnalyzer(
|
|||||||
assert(file.isScript() || packageDirective != null) { "No package in a non-script file: " + file }
|
assert(file.isScript() || packageDirective != null) { "No package in a non-script file: " + file }
|
||||||
packageDirective?.accept(this)
|
packageDirective?.accept(this)
|
||||||
c.addFile(file)
|
c.addFile(file)
|
||||||
topLevelFqNames.put(file.packageFqName, packageDirective)
|
if (packageDirective != null) topLevelFqNames.put(file.packageFqName, packageDirective)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun visitPackageDirective(directive: KtPackageDirective) {
|
override fun visitPackageDirective(directive: KtPackageDirective) {
|
||||||
|
|||||||
@@ -389,7 +389,7 @@ class CandidateResolver(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
argumentTypes.add(resultingType)
|
if (resultingType != null) argumentTypes.add(resultingType)
|
||||||
candidateCall.recordArgumentMatchStatus(argument, matchStatus)
|
candidateCall.recordArgumentMatchStatus(argument, matchStatus)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -54,7 +54,7 @@ abstract class AbstractPsiBasedDeclarationProvider(storageManager: StorageManage
|
|||||||
is KtClassOrObject ->
|
is KtClassOrObject ->
|
||||||
classesAndObjects.put(declaration.nameAsName.safeNameForLazyResolve(), KtClassInfoUtil.createClassOrObjectInfo(declaration))
|
classesAndObjects.put(declaration.nameAsName.safeNameForLazyResolve(), KtClassInfoUtil.createClassOrObjectInfo(declaration))
|
||||||
is KtScript ->
|
is KtScript ->
|
||||||
scripts.put(KtScriptInfo(declaration).script.nameAsName, KtScriptInfo(declaration))
|
scripts.put(KtScriptInfo(declaration).script.nameAsName!!, KtScriptInfo(declaration))
|
||||||
is KtDestructuringDeclaration -> {
|
is KtDestructuringDeclaration -> {
|
||||||
for (entry in declaration.entries) {
|
for (entry in declaration.entries) {
|
||||||
val name = entry.nameAsName.safeNameForLazyResolve()
|
val name = entry.nameAsName.safeNameForLazyResolve()
|
||||||
|
|||||||
Reference in New Issue
Block a user