def keyword_kind

bolt@1.27.0.0 · src/syntax/tree.bend:289

import bolt@1.27.0.0/src/syntax/tree.bend as Tree
import Base

289# the kind of a statement led by this keyword
290def keyword_kind(+tt: String) -> StmtKind:
291  Bool.pick(StmtKind, String.eq(tt, "def"), SDef{},
292    Bool.pick(StmtKind, String.eq(tt, "type"), SType{},
293      Bool.pick(StmtKind, String.eq(tt, "law"), SLaw{},
294        Bool.pick(StmtKind, String.eq(tt, "import"), SImport{},
295          Bool.pick(StmtKind, String.eq(tt, "case"), SCase{},
296            Bool.pick(StmtKind, Bool.or(String.eq(tt, "for"), String.eq(tt, "exs")), SFor{}, STerm{}))))))

Uses (5)

Used by (1)