File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ trait SourceFileEntry extends ClassRepresentation {
2424
2525case class PackageName (dottedString : String ) {
2626 def isRoot : Boolean = dottedString.isEmpty
27- val dirPathTrailingSlash : String = FileUtils .dirPath (dottedString) + " /"
27+ val dirPathTrailingSlash : String = FileUtils .dirPathInArchive (dottedString) + " /"
2828
2929 def entryName (entry : String ): String = {
3030 if (isRoot) entry else {
Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ object FileUtils {
4444
4545 def dirPath (forPackage : String ): String = forPackage.replace('.' , JFile .separatorChar)
4646
47+ def dirPathInArchive (forPackage : String ): String = forPackage.replace('.' , '/' )
48+
4749 def endsClass (fileName : String ): Boolean =
4850 fileName.length > 6 && fileName.substring(fileName.length - 6 ) == " .class"
4951
Original file line number Diff line number Diff line change @@ -209,8 +209,7 @@ object SymbolLoaders {
209209
210210 /** Load contents of a package
211211 */
212- class PackageLoader (_sourceModule : TermSymbol , classPath : ClassPath )
213- extends SymbolLoader {
212+ class PackageLoader (_sourceModule : TermSymbol , classPath : ClassPath ) extends SymbolLoader {
214213 override def sourceFileOrNull : AbstractFile = null
215214 override def sourceModule (using Context ): TermSymbol = _sourceModule
216215 def description (using Context ): String = " package loader " + sourceModule.fullName
You can’t perform that action at this time.
0 commit comments