def graph.items

bolt@1.27.0.0 · src/rules/laws/law.bend:93

import bolt@1.27.0.0/src/rules/laws/law.bend as Law
import Base
import bolt@1.27.0.0/src/rules/digest.bend as Digest
import bolt@1.27.0.0/src/rules/imports.bend as Imports

93# the items of every file as nodes
94def graph.items(ds: List<&2, Digest.Digest>) -> List<&2, Imports.Edge>:
95  match ds:
96    case Nil{}:
97      Nil{}
98    case Con{Digest.Digest{path, norm, dir, is_laws, is_law_file, exempt, tops, says, deps, laws}, rest}:
99      nodes(tops, norm, graph.items(rest))

Uses (4)

Used by (1)