def lit.of

bolt@1.27.0.0 · src/rules/correctness/arms.bend:49

import bolt@1.27.0.0/src/rules/correctness/arms.bend as Arms
import Base
import bolt@1.27.0.0/src/syntax/tree.bend as Tree

49# a Nat literal token's arm, once its value is read
50def lit.of(mm: Maybe<&2, U32>, +tt: String, +rest: Tree.Node, +line: U32, +col: U32) -> Arm:
51  match mm:
52    case None{}:
53      AOther{}
54    case Some{+k}:
55      lit.shape(rest, k, tt, line, col)

Uses (6)

Used by (1)