SkipOnSuccess2

zio.parser.internal.stacksafe.ParserOp.SkipOnSuccess2
final case class SkipOnSuccess2(checkBranchPosition: Boolean, transform: Any => Any) extends ParserOp

If the result is success, skip the next two parser operations. Optionally if the transform is not null, it replaces the result with the transform function applied to it. This can be used to shortcut the right side of an or operation. If checkBranchPosition is true, the last branch position will be popped and checked and if the position was moved the left failure is kept and the next operations get skipped.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait ParserOp
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

override val needsEmptyResultSlot: Boolean