Pkg.foreign.put: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/pkg/pkg.bend as Pkg Lines 804-816 of ezx@1.11.0.0/src/pkg/pkg.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/pkg/pkg.bend&start_line=804&end_line=816 import Base # a foreign body the tree holds, with the LICENSE beside it, or nothing when # it is not there. bend uploads only the ones that are there. It is named the # way the module importing it is named, from that module's own directory: # `bend --publish` writes `src/util/beep.c` for a body imported by # `src/util/math.bend`. def foreign.put(got: Look, +tree: Tree, +at: String, +raw: String) -> List<&2, Hit>: match got: case Here{text}: Hit{raw, text} <> license.put(find(tree, beside(at)), beside(raw)) case Absent{}: [] case Unasked{}: [] Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pkg/pkg.bend&name=Hit https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pkg/pkg.bend&name=Look https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pkg/pkg.bend&name=Tree https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pkg/pkg.bend&name=beside https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pkg/pkg.bend&name=find https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pkg/pkg.bend&name=license.put