TransformResultToOption

zio.parser.internal.stacksafe.ParserOp.TransformResultToOption
final case class TransformResultToOption(checkBranchPosition: Boolean) extends ParserOp

Pop the last result from the stack and if it was success, respush wrapped in Some, if it was failure, repush as a successful None. When checkBranchPosition is true, if position was moved compared to the last branch position then keep the failure.

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