InlinePiece

sealed interface InlinePiece

One element of the inline scan's first pass. Emphasis pairing needs the whole run before it can decide what nests inside what, so the first pass stops at these three shapes and the second pass resolves them.

Inheritors

Types

Link copied to clipboard

An unresolved delimiter run.

Link copied to clipboard
class Finished(val token: Token) : InlinePiece

A token a recognizer already produced.

Link copied to clipboard
class Raw(val start: Int, val end: Int) : InlinePiece

A span no recognizer claimed, which becomes plain text unless it ends up inside an emphasis pair.