def root_path

bend-lint-pack@0.1.1.0 · common.bend:438

import bend-lint-pack@0.1.1.0/common.bend as Common
import Base
import bend-lint-pack@0.1.1.0/vendor/lint.bend as Lint

438def root_path(sources: List<&2, Lint.Source>) -> String:
439  match sources:
440    case Nil{}:
441      ""
442    case Con{Lint.Source{+path, text, root}, rest}:
443      Bool.pick(String, root, path, root_path(rest))

Uses (4)

Used by (1)