Skip to content

Commit 2cd20e4

Browse files
committed
Make inspectFilesInContext private to inspector
1 parent 35f3e12 commit 2cd20e4

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

scala3doc/src/dotty/dokka/tasty/TastyParser.scala

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import org.jetbrains.dokka.model.properties.PropertyContainerKt._
1515
import org.jetbrains.dokka.model.properties.{WithExtraProperties}
1616

1717
import quoted.Quotes
18-
import scala.tasty.inspector.TastyInspector
18+
import scala.tasty.inspector.DocTastyInspector
1919
import dotty.dokka.model.api.withNewMembers
2020
import dotty.dokka.tasty.comments.MemberLookup
2121
import dotty.dokka.tasty.comments.QueryParser
@@ -25,7 +25,10 @@ import scala.util.Try
2525
*
2626
* Delegates most of the work to [[TastyParser]] [[dotty.dokka.tasty.TastyParser]].
2727
*/
28-
case class DokkaTastyInspector(sourceSet: SourceSetWrapper, parser: Parser, config: DottyDokkaConfig) extends TastyInspector:
28+
case class DokkaTastyInspector(
29+
sourceSet: SourceSetWrapper,
30+
parser: Parser,
31+
config: DottyDokkaConfig) extends DocTastyInspector:
2932

3033
private val topLevels = Seq.newBuilder[Documentable]
3134

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package scala.tasty.inspector
2+
3+
import dotty.tools.dotc.core.Contexts.Context
4+
5+
abstract class DocTastyInspector extends TastyInspector:
6+
def inspectFilesInDocContext(
7+
classpath: List[String],
8+
filePaths: List[String])(
9+
using Context): Unit = inspectFilesInContext(classpath, filePaths)

tasty-inspector/src/scala/tasty/inspector/TastyInspector.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ trait TastyInspector:
6565
* @param classes List of paths of `.tasty` and `.jar` files (no validation is performed)
6666
* @param classpath Classpath with extra dependencies needed to load class in the `.tasty` files
6767
*/
68-
protected def inspectFilesInContext(classpath: List[String], classes: List[String])(using Context): Unit =
68+
protected[inspector] def inspectFilesInContext(classpath: List[String], classes: List[String])(using Context): Unit =
6969
if (classes.isEmpty) report.error("Parameter classes should no be empty")
7070
inspectorDriver().process(inspectorArgs(classpath, classes), summon[Context])
7171

0 commit comments

Comments
 (0)