File tree 1 file changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/fromtasty 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,11 +35,11 @@ object Debug {
35
35
36
36
val fromTastyOut = Files .createDirectory(tmpOut.resolve(" from-tasty" ))
37
37
38
- val ext = " hasTasty"
39
- val classes = Directory (fromSourcesOut).walk.filter(x => x.isFile && x.extension == ext ).map { x =>
38
+ val extensions = List ( " tasty " , " hasTasty" ).map(_.toLowerCase)
39
+ val classes = Directory (fromSourcesOut).walk.filter(x => x.isFile && extensions.exists(_ == x.extension.toLowerCase) ).map { x =>
40
40
val source = x.toString
41
41
// transform foo/bar/Baz.hasTasty into foo.bar.Baz
42
- source.substring(fromSourcesOut.toString.length + 1 , source.length - ext .length - 1 ).replace('/' , '.' )
42
+ source.substring(fromSourcesOut.toString.length + 1 , source.length - x.extension .length - 1 ).replace('/' , '.' )
43
43
}.toList
44
44
45
45
val fromTastyArgs = {
You can’t perform that action at this time.
0 commit comments