def mod_of.step

ezx@1.11.0.0 · src/pkg/pkg.bend:168

import ezx@1.11.0.0/src/pkg/pkg.bend as Pkg
import Base

168# the line named a module, or it did not, with the answer already in hand.
169# `Bool.pick` is an ordinary function and builds both of its arms before it
170# picks one, so under it `word(ws, 1n)` walked the words of every line of
171# every source file ez scans. An arm of a `match` is not built until it is
172# taken.
173def mod_of.step(named: Bool, ws: List<&2, String>) -> Stmt:
174  match named:
175    case True{}:
176      SMod{word(ws, 1n)}
177    case False{}:
178      SBody{}

Uses (5)

Used by (1)