State

sealed class State(source)

Inheritors

Types

Link copied to clipboard
@Immutable
data class Delete(val token: Token, val index: Int) : State

Represents a deletion.

Link copied to clipboard
object Empty : State

Represents the initial state.

Link copied to clipboard
@Immutable
data class Insert(val token: Token, val index: Int) : State

Represents an insert.

Link copied to clipboard
@Immutable
data class Match(val previous: Token, val previousIdx: Int, val current: Token, val currentIdx: Int) : State

This represents a Match.

Functions

Link copied to clipboard
fun State.color(): Color
Link copied to clipboard