def seg_op.ends

bolt@1.27.0.0 · src/rules/pedantic/strict.bend:26

import bolt@1.27.0.0/src/rules/pedantic/strict.bend as Strict
import Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex

26# a comma or a `=>`: the end of a stretch
27def seg_op.ends(kk: Lex.TokKind) -> Bool:
28  match kk:
29    case Lex.TComma{}:
30      True{}
31    case Lex.TLam{}:
32      True{}
33    case other:
34      False{}

Uses (2)

Used by (1)