Skip to content

Commit 682c8b4

Browse files
committed
rename scaladoc TastyInspector to avoid classpath issues
1 parent 09a99e7 commit 682c8b4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

scaladoc/src/dotty/tools/scaladoc/tasty/TastyParser.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package tasty
55
import java.util.regex.Pattern
66

77
import scala.util.{Try, Success, Failure}
8-
import scala.tasty.inspector.{TastyInspector, Inspector, Tasty}
8+
import scala.tasty.inspector.{ScaladocInternalTastyInspector, Inspector, Tasty}
99
import scala.quoted._
1010

1111
import dotty.tools.dotc
@@ -160,7 +160,7 @@ object ScaladocTastyInspector:
160160
report.error("File extension is not `tasty` or `jar`: " + invalidPath)
161161

162162
if tastyPaths.nonEmpty then
163-
TastyInspector.inspectAllTastyFilesInContext(tastyPaths, jarPaths, classpath)(inspector)(using ctx.compilerContext)
163+
ScaladocInternalTastyInspector.inspectAllTastyFilesInContext(tastyPaths, jarPaths, classpath)(inspector)(using ctx.compilerContext)
164164

165165
val all = inspector.topLevels.result()
166166
all.groupBy(_._1).map { case (pckName, members) =>

scaladoc/src/scala/tasty/inspector/TastyInspector.scala

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copy of tasty-inspector/src/scala/tasty/inspector/TastyInspector.scala
1+
// Renamed copy of tasty-inspector/src/scala/tasty/inspector/TastyInspector.scala
22
// FIXME remove this copy of the file
33
// Since copying, an inspectAllTastyFilesInContext ,ethod was added for scaladoc only
44
// to fix regressions introduced by the switch from old to a new TastyInspector
@@ -23,7 +23,7 @@ import dotty.tools.dotc.report
2323

2424
import java.io.File.pathSeparator
2525

26-
object TastyInspector:
26+
object ScaladocInternalTastyInspector:
2727

2828
/** Load and process TASTy files using TASTy reflect
2929
*
@@ -145,4 +145,4 @@ object TastyInspector:
145145
end inspectFiles
146146

147147

148-
end TastyInspector
148+
end ScaladocInternalTastyInspector

0 commit comments

Comments
 (0)