Fix warnings in kotlin-klib-commonizer
This commit is contained in:
@@ -28,8 +28,8 @@ internal fun CirPackageNode.assembleCirTree(): CirTreePackage? {
|
|||||||
|
|
||||||
return CirTreePackage(
|
return CirTreePackage(
|
||||||
pkg = commonizedPackage,
|
pkg = commonizedPackage,
|
||||||
properties = properties.mapNotNull { (key, property) -> property.commonDeclaration() },
|
properties = properties.mapNotNull { (_, property) -> property.commonDeclaration() },
|
||||||
functions = functions.mapNotNull { (key, function) -> function.commonDeclaration() },
|
functions = functions.mapNotNull { (_, function) -> function.commonDeclaration() },
|
||||||
typeAliases = commonizedTypeAliases.filterIsInstance<CirTreeTypeAlias>(),
|
typeAliases = commonizedTypeAliases.filterIsInstance<CirTreeTypeAlias>(),
|
||||||
classes = classes.mapNotNull { (_, clazz) -> clazz.assembleCirTree() } + commonizedTypeAliases.filterIsInstance<CirTreeClass>()
|
classes = classes.mapNotNull { (_, clazz) -> clazz.assembleCirTree() } + commonizedTypeAliases.filterIsInstance<CirTreeClass>()
|
||||||
)
|
)
|
||||||
@@ -39,9 +39,9 @@ internal fun CirClassNode.assembleCirTree(): CirTreeClass? {
|
|||||||
return CirTreeClass(
|
return CirTreeClass(
|
||||||
id = id,
|
id = id,
|
||||||
clazz = commonDeclaration() ?: return null,
|
clazz = commonDeclaration() ?: return null,
|
||||||
properties = properties.mapNotNull { (key, property) -> property.commonDeclaration() },
|
properties = properties.mapNotNull { (_, property) -> property.commonDeclaration() },
|
||||||
functions = functions.mapNotNull { (key, function) -> function.commonDeclaration() },
|
functions = functions.mapNotNull { (_, function) -> function.commonDeclaration() },
|
||||||
constructors = constructors.mapNotNull { (key, constructor) -> constructor.commonDeclaration() },
|
constructors = constructors.mapNotNull { (_, constructor) -> constructor.commonDeclaration() },
|
||||||
classes = classes.mapNotNull { (_, clazz) -> clazz.assembleCirTree() }
|
classes = classes.mapNotNull { (_, clazz) -> clazz.assembleCirTree() }
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user