def plan.bmode

bolt@1.27.0.0 · src/syntax/bind.bend:722

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

722# the mode a statement's body is read in
723def plan.bmode(mode: Mode, sk: Tree.StmtKind) -> Mode:
724  match mode sk:
725    case MBlock{} Tree.SType{}:
726      MCtors{}
727    case MBlock{} Tree.SImport{}:
728      MStop{}
729    case MBlock{} _sk:
730      MBlock{}
731    case _other _sk:
732      MStop{}

Uses (2)

Used by (1)