Skip to content

Commit c542d98

Browse files
committed
Removed accidental API exposures, assigned group to DefuncErrorBuilder object
1 parent 5b8958d commit c542d98

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

build.sbt

+4-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ inThisBuild(List(
6060
ProblemFilters.exclude[MissingClassProblem]("parsley.expr.Postfixes*"),
6161
// sbt-typelevel 0.5 upgrade
6262
ProblemFilters.exclude[DirectMissingMethodProblem]("parsley.token.errors.Label.asExpectItems"),
63-
ProblemFilters.exclude[DirectMissingMethodProblem]("parsley.token.errors.LabelAndReason.asExpectItems")
63+
ProblemFilters.exclude[DirectMissingMethodProblem]("parsley.token.errors.LabelAndReason.asExpectItems"),
64+
// accidental exposure
65+
ProblemFilters.exclude[MissingClassProblem]("parsley.internal.machine.errors.DefuncError$"),
6466
),
6567
tlVersionIntroduced := Map(
6668
"2.13" -> "1.5.0",
@@ -102,7 +104,7 @@ lazy val parsley = crossProject(JSPlatform, JVMPlatform, NativePlatform)
102104
)
103105
.jsSettings(
104106
// JS lacks the IO module, so has its own rootdoc
105-
Compile / doc / scalacOptions ++= Seq("-groups", "-doc-root-content", s"${baseDirectory.value.getPath}/rootdoc.md"),
107+
Compile / doc / scalacOptions ++= Seq("-doc-root-content", s"${baseDirectory.value.getPath}/rootdoc.md"),
106108
)
107109

108110
def testCoverageJob(cacheSteps: List[WorkflowStep]) = WorkflowJob(

parsley/shared/src/main/scala-2.12/parsley/XAnnotation.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package parsley
55

66
import org.typelevel.scalaccompat.annotation.unused
77

8-
object XAnnotation {
8+
private [parsley] object XAnnotation {
99
type implicitNotFound212 = scala.annotation.implicitNotFound
1010
class implicitNotFound213(@unused msg: String) extends scala.annotation.StaticAnnotation // scalastyle:ignore class.name
1111
}

parsley/shared/src/main/scala-2.13+/parsley/XAnnotation.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package parsley
55

66
import scala.annotation.unused
77

8-
object XAnnotation {
8+
private [parsley] object XAnnotation {
99
type implicitNotFound213 = scala.annotation.implicitNotFound
1010
class implicitNotFound212(@unused msg: String) extends scala.annotation.StaticAnnotation // scalastyle:ignore class.name
1111
}

parsley/shared/src/main/scala/parsley/errors/DefaultErrorBuilder.scala

+1
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ abstract class DefaultErrorBuilder extends ErrorBuilder[String] {
101101
/** Helper functions used to build the `DefaultErrorBuilder` error messages.
102102
*
103103
* @since 4.3.0
104+
* @group formatting
104105
*/
105106
object DefaultErrorBuilder {
106107
final val Unknown = "unknown parse error"

parsley/shared/src/main/scala/parsley/internal/machine/errors/DefuncError.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ private [parsley] sealed abstract class DefuncError {
121121
private [machine] def markAsLexical(offset: Int): DefuncError
122122
}
123123
// These are not covered by coverage because they are all inlined
124-
object DefuncError {
124+
private [errors] object DefuncError {
125125
// $COVERAGE-OFF$
126126
private [errors] final val TrivialErrorMask = 1 << (java.lang.Integer.SIZE - 1)
127127
private [errors] final val ExpectedEmptyMask = 1 << (java.lang.Integer.SIZE - 2)

0 commit comments

Comments
 (0)