def scan.mod

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

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

267# a module named after the header has ended is not part of the header, so the
268# line is ignored rather than followed
269def scan.mod(+head: Bool, spec: String, mods: List<&2, String>, foreign: List<&2, String>) -> Head:
270  match head:
271    case True{}:
272      Head{True{}, spec <> mods, foreign}
273    case False{}:
274      Head{False{}, mods, foreign}

Uses (4)

Used by (1)