def span.kind

emerging-ezjson@1.3.0.0 · src/pull.bend:339

import emerging-ezjson@1.3.0.0/src/pull.bend as Pull
import Base
import emerging-ezjson@1.3.0.0/src/lex.bend as Lex

339# one character of a string: stay in it, close it, start an escape, or fail
340def span.kind(cls: Lex.Class, ctrl: Bool) -> Skind:
341  match cls ctrl:
342    case Lex.CQuote{} c:
343      KEnd{}
344    case Lex.CBack{} False{}:
345      KEsc{}
346    case k True{}:
347      KBad{}
348    case k False{}:
349      KGo{}

Uses (3)

Used by (1)