def Paths.of

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

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

246# The paths the owners' spans are in.
247def Paths.of(seen: List<&2, Seen>, out: Set()) -> Set():
248  match seen:
249    case Nil{}:
250      out
251    case Con{Seen{owner, Some{Lint.Span{path, beg, end}}}, rest}:
252      Paths.of(rest, Set.add(out, path))
253    case Con{x, rest}:
254      Paths.of(rest, out)

Uses (6)

Used by (2)