parsley.internal.machine.errors.Builders.scala Maven / Gradle / Ivy
/* SPDX-FileCopyrightText: © 2021 Parsley Contributors
* SPDX-License-Identifier: BSD-3-Clause
*/
package parsley.internal.machine.errors
import parsley.internal.errors.{UnexpectItem, UnexpectRaw}
private [machine] abstract class ErrorItemBuilder {
final private [errors] def apply(offset: Int, size: Int): UnexpectItem = UnexpectRaw(iterableFrom(offset), size)
private [errors] def inRange(offset: Int): Boolean
protected def codePointAt(offset: Int): Int
protected def iterableFrom(offset: Int): Iterable[Char]
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy