def in_root

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

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

448def in_root(+root: String, span: Maybe<&2, Lint.Span>) -> Bool:
449  match span:
450    case Some{Lint.Span{path, beg, end}}:
451      String.eq(path, root)
452    case None{}:
453      False{}

Uses (5)

Used by (1)