mirror of
https://github.com/apple/pkl.git
synced 2026-04-23 08:48:36 +02:00
Fix incorrect substring (#1028)
The relative path should be based off the module name prefix, not the package name.
This commit is contained in:
@@ -414,7 +414,9 @@ private fun findTypesUsedBy(
|
|||||||
enclosingPackage.name,
|
enclosingPackage.name,
|
||||||
enclosingPackage.uri,
|
enclosingPackage.uri,
|
||||||
enclosingPackage.version,
|
enclosingPackage.version,
|
||||||
enclosingType.moduleName.substring(enclosingPackage.name.length + 1).replace('.', '/'),
|
enclosingType.moduleName
|
||||||
|
.substring(enclosingPackage.moduleNamePrefix.length)
|
||||||
|
.replace('.', '/'),
|
||||||
PClassInfo.MODULE_CLASS_NAME,
|
PClassInfo.MODULE_CLASS_NAME,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user