File tree 3 files changed +4
-3
lines changed
compiler/src/dotty/tools/dotc
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 {
24
24
25
25
case class PackageName (dottedString : String ) {
26
26
def isRoot : Boolean = dottedString.isEmpty
27
- val dirPathTrailingSlash : String = FileUtils .dirPath (dottedString) + " /"
27
+ val dirPathTrailingSlash : String = FileUtils .dirPathInArchive (dottedString) + " /"
28
28
29
29
def entryName (entry : String ): String = {
30
30
if (isRoot) entry else {
Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ object FileUtils {
44
44
45
45
def dirPath (forPackage : String ): String = forPackage.replace('.' , JFile .separatorChar)
46
46
47
+ def dirPathInArchive (forPackage : String ): String = forPackage.replace('.' , '/' )
48
+
47
49
def endsClass (fileName : String ): Boolean =
48
50
fileName.length > 6 && fileName.substring(fileName.length - 6 ) == " .class"
49
51
Original file line number Diff line number Diff line change @@ -209,8 +209,7 @@ object SymbolLoaders {
209
209
210
210
/** Load contents of a package
211
211
*/
212
- class PackageLoader (_sourceModule : TermSymbol , classPath : ClassPath )
213
- extends SymbolLoader {
212
+ class PackageLoader (_sourceModule : TermSymbol , classPath : ClassPath ) extends SymbolLoader {
214
213
override def sourceFileOrNull : AbstractFile = null
215
214
override def sourceModule (using Context ): TermSymbol = _sourceModule
216
215
def description (using Context ): String = " package loader " + sourceModule.fullName
You can’t perform that action at this time.
0 commit comments