mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 22:30:54 +01: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.uri,
|
||||
enclosingPackage.version,
|
||||
enclosingType.moduleName.substring(enclosingPackage.name.length + 1).replace('.', '/'),
|
||||
enclosingType.moduleName
|
||||
.substring(enclosingPackage.moduleNamePrefix.length)
|
||||
.replace('.', '/'),
|
||||
PClassInfo.MODULE_CLASS_NAME,
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user