@@ -43,7 +43,7 @@ abstract class SignatureTest(
43
43
44
44
val unexpected = unexpectedFromSources.flatMap(actualSignatures.get).flatten
45
45
val expectedButNotFound = expectedFromSources.flatMap {
46
- case (k, v) => findMissingSingatures (v, actualSignatures.getOrElse(k, Nil ))
46
+ case (k, v) => findMissingSignatures (v, actualSignatures.getOrElse(k, Nil ))
47
47
}
48
48
49
49
val missingReport = Option .when(! ignoreMissingSignatures && ! expectedButNotFound.isEmpty)
@@ -75,14 +75,13 @@ abstract class SignatureTest(
75
75
private val unexpectedRegex = raw " (.+)//unexpected " .r
76
76
private val identifierRegex = raw " ^\s*(`.*`|(?:\w+)(?:_[^\[\(\s]+)|\w+|[^\[\(\s]+) " .r
77
77
78
- private def findMissingSingatures (expected : Seq [String ], actual : Seq [String ]): Set [String ] =
78
+ private def findMissingSignatures (expected : Seq [String ], actual : Seq [String ]): Set [String ] =
79
79
expected.toSet &~ actual.toSet
80
80
81
81
extension (s : String )
82
82
private def startWithAnyOfThese (c : String * ) = c.exists(s.startsWith)
83
83
private def compactWhitespaces = whitespaceRegex.replaceAllIn(s, " " )
84
84
85
- private var counter = 0
86
85
private def findName (signature : String , kinds : Seq [String ]): Option [String ] =
87
86
for
88
87
kindMatch <- kinds.flatMap(k => s " \\ b $k\\ b " .r.findFirstMatchIn(signature)).headOption
@@ -134,7 +133,6 @@ abstract class SignatureTest(
134
133
val all = s " $annotations$other $sigPrefix$signature" .trim()
135
134
signatures += all
136
135
}
137
- counter = 0
138
136
139
137
IO .foreachFileIn(output, processFile)
140
138
signatures.result
0 commit comments