def plan.scoped

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

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

766# does a statement close its scope for the statements after it? All but a
767# let and a `for` in a block do
768def plan.scoped(mode: Mode, sk: Tree.StmtKind) -> Bool:
769  match mode sk:
770    case MBlock{} Tree.SFor{}:
771      False{}
772    case MBlock{} Tree.SLet{}:
773      False{}
774    case _other _sk:
775      True{}

Uses (3)

Used by (1)