def fact

bolt@1.27.0.0 · src/role.bend:73

import bolt@1.27.0.0/src/role.bend as Role
import Base
import bolt@1.27.0.0/src/paths.bend as Paths
import bolt@1.27.0.0/src/src.bend as Src
import bolt@1.27.0.0/src/rules/imports.bend as Imports

73# a parsed file read down to its fact
74def fact(ss: Src.Src) -> Fact:
75  Src.Src{+path, _text, _toks, _tree, _bound, items} = ss
76  +nn = Imports.norm(path)
77  Fact{nn, Imports.targets(items, nn), of_path(path), String.eq(Paths.base(path), "main.bend")}

Uses (7)

Used by (1)