def edges
import bolt@1.27.0.0/src/role.bend as Roleimport Base
import bolt@1.27.0.0/src/rules/imports.bend as Imports
101# the import graph of the files
102def edges(fs: List<&2, Fact>) -> List<&2, Imports.Edge>:
103 match fs:
104 case Nil{}:
105 Nil{}
106 case Con{Fact{norm, deps, _named, _entry}, rest}:
107 Imports.Edge{norm, deps} <> edges(rest)