def check.act

bolt@1.27.0.0 · src/rules/style/wrap.bend:367

import bolt@1.27.0.0/src/rules/style/wrap.bend as Wrap
import Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex

367# the motion of one token
368def check.act(
369  ph: Phase,
370  kk: Lex.TokKind,
371  +tx: String,
372  glued: Bool,
373  +paren: U32,
374  +angle: U32,
375  +brace: U32,
376  +bracket: U32
377) -> Act:
378  match ph:
379    case Past{}:
380      check.act_done(kk, tx, glued, paren, angle, brace, bracket)
381    case Shut{}:
382      check.act_shut(kk, tx, glued, paren, angle, brace, bracket)
383    case Loose{}:
384      check.act_done(kk, tx, glued, paren, angle, brace, bracket)
385    case Seek{}:
386      check.act_seek(kk, tx, glued, paren, angle, brace, bracket)
387    case Args{}:
388      check.act_args(kk, tx, glued, paren, angle, brace, bracket)

Uses (10)

Used by (1)