Migration to expect/actual: renames in DeclarationResolver
This commit is contained in:
@@ -78,12 +78,12 @@ class DeclarationResolver(
|
|||||||
for ((fqName, declarationsOrPackageDirectives) in topLevelFqNames.asMap()) {
|
for ((fqName, declarationsOrPackageDirectives) in topLevelFqNames.asMap()) {
|
||||||
if (fqName.isRoot) continue
|
if (fqName.isRoot) continue
|
||||||
|
|
||||||
// TODO: report error on header class and impl val, or vice versa
|
// TODO: report error on expected class and actual val, or vice versa
|
||||||
val (header, impl) =
|
val (expected, actual) =
|
||||||
getTopLevelDescriptorsByFqName(topLevelDescriptorProvider, fqName, NoLookupLocation.WHEN_CHECK_DECLARATION_CONFLICTS)
|
getTopLevelDescriptorsByFqName(topLevelDescriptorProvider, fqName, NoLookupLocation.WHEN_CHECK_DECLARATION_CONFLICTS)
|
||||||
.partition { it is MemberDescriptor && it.isExpect }
|
.partition { it is MemberDescriptor && it.isExpect }
|
||||||
|
|
||||||
for (descriptors in listOf(header, impl)) {
|
for (descriptors in listOf(expected, actual)) {
|
||||||
if (descriptors.size > 1) {
|
if (descriptors.size > 1) {
|
||||||
for (directive in declarationsOrPackageDirectives) {
|
for (directive in declarationsOrPackageDirectives) {
|
||||||
val reportAt = (directive as? KtPackageDirective)?.nameIdentifier ?: directive
|
val reportAt = (directive as? KtPackageDirective)?.nameIdentifier ?: directive
|
||||||
|
|||||||
Reference in New Issue
Block a user