Lock.src.pairs: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/lock/lock.bend as Lock Lines 427-437 of ezx@1.11.0.0/src/lock/lock.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/lock/lock.bend&start_line=427&end_line=437 import Base import ezx@1.11.0.0/src/toml/toml.bend as T # the keys a source contributes to the lock def src.pairs(source: Src) -> List<&2, T.Kv>: match source: case Hub{}: [T.Kv{"kind", "hub"}] case Git{url, rev, entry, root, nar, tag}: List.concat(&2, T.Kv, [[T.Kv{"kind", "git"}], kv("url", url), kv("rev", rev), kv("entry", entry), kv("root", root), kv("narHash", nar), kv("tag", tag)]) case Member{path, entry}: List.concat(&2, T.Kv, [[T.Kv{"kind", "member"}], kv("path", path), kv("entry", entry)]) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.concat https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/lock.bend&name=Src https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/lock.bend&name=kv https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/toml/toml.bend&name=Kv