Expectation

object Expectation
Companion
class
trait Sum
trait Mirror
class Object
trait Matchable
class Any

Type members

Classlikes

case class EndOfString(offset: Int, length: Int) extends Expectation
case class ExpectedFailureAt(offset: Int, matched: String) extends Expectation
case class Fail(offset: Int) extends Expectation
case class FailWith(offset: Int, message: String) extends Expectation
case class InRange(offset: Int, lower: Char, upper: Char) extends Expectation
case class Length(offset: Int, expected: Int, actual: Int) extends Expectation
case class OneOfStr(offset: Int, strs: List[String]) extends Expectation
case class StartOfString(offset: Int) extends Expectation
case class WithContext(contextStr: String, expect: Expectation) extends Expectation

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

Value members

Concrete methods

def unify(errors: NonEmptyList[Expectation]): NonEmptyList[Expectation]

Sort, dedup and unify ranges for the errors accumulated This is called just before finally returning an error in Parser.parse

Sort, dedup and unify ranges for the errors accumulated This is called just before finally returning an error in Parser.parse

Implicits

Implicits

implicit val catsOrderExpectation: Order[Expectation]