Skip to content

Commit 2bf7886

Browse files
committed
Correct typo in SignatureTest file
1 parent 1828c8a commit 2bf7886

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

project/Build.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ object Build {
361361
// Settings used when compiling dotty with a non-bootstrapped dotty
362362
lazy val commonBootstrappedSettings = commonDottySettings ++ NoBloopExport.settings ++ Seq(
363363
// To enable support of scaladoc and language-server projects you need to change this to true and use sbt as your build server
364-
// bspEnabled := false,
364+
bspEnabled := false,
365365
(Compile / unmanagedSourceDirectories) += baseDirectory.value / "src-bootstrapped",
366366

367367
version := dottyVersion,

scaladoc/test/dotty/tools/scaladoc/signatures/SignatureTest.scala

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ abstract class SignatureTest(
4343

4444
val unexpected = unexpectedFromSources.flatMap(actualSignatures.get).flatten
4545
val expectedButNotFound = expectedFromSources.flatMap {
46-
case (k, v) => findMissingSingatures(v, actualSignatures.getOrElse(k, Nil))
46+
case (k, v) => findMissingSignatures(v, actualSignatures.getOrElse(k, Nil))
4747
}
4848

4949
val missingReport = Option.when(!ignoreMissingSignatures && !expectedButNotFound.isEmpty)
@@ -75,14 +75,13 @@ abstract class SignatureTest(
7575
private val unexpectedRegex = raw"(.+)//unexpected".r
7676
private val identifierRegex = raw"^\s*(`.*`|(?:\w+)(?:_[^\[\(\s]+)|\w+|[^\[\(\s]+)".r
7777

78-
private def findMissingSingatures(expected: Seq[String], actual: Seq[String]): Set[String] =
78+
private def findMissingSignatures(expected: Seq[String], actual: Seq[String]): Set[String] =
7979
expected.toSet &~ actual.toSet
8080

8181
extension (s: String)
8282
private def startWithAnyOfThese(c: String*) = c.exists(s.startsWith)
8383
private def compactWhitespaces = whitespaceRegex.replaceAllIn(s, " ")
8484

85-
private var counter = 0
8685
private def findName(signature: String, kinds: Seq[String]): Option[String] =
8786
for
8887
kindMatch <- kinds.flatMap(k =>s"\\b$k\\b".r.findFirstMatchIn(signature)).headOption
@@ -134,7 +133,6 @@ abstract class SignatureTest(
134133
val all = s"$annotations$other $sigPrefix$signature".trim()
135134
signatures += all
136135
}
137-
counter = 0
138136

139137
IO.foreachFileIn(output, processFile)
140138
signatures.result

0 commit comments

Comments
 (0)