Refactor JvmPackagePartProvider
Make code more imperative than functional, preserve the information about the original root where the module mapping was discovered
This commit is contained in:
@@ -95,6 +95,11 @@ class PackageParts(val packageFqName: String) {
|
||||
}
|
||||
}
|
||||
|
||||
operator fun plusAssign(other: PackageParts) {
|
||||
parts.addAll(other.parts)
|
||||
metadataParts.addAll(other.metadataParts)
|
||||
}
|
||||
|
||||
override fun equals(other: Any?) =
|
||||
other is PackageParts && other.packageFqName == packageFqName && other.parts == parts && other.metadataParts == metadataParts
|
||||
|
||||
|
||||
Reference in New Issue
Block a user