def is_root

bend-lint-pack@0.1.1.0 · dead/def.bend:30

import bend-lint-pack@0.1.1.0/dead/def.bend as Def
import Base
import bend-lint-pack@0.1.1.0/common.bend as Common

30# Entry points
31# ============
32def is_root(+laws: Set(), +entries: List<&2, String>, +owner: String) -> Bool:
33  Bool.or(
34    String.eq(owner, "main"),
35    Bool.or(Common.Laws.has(laws, owner), Common.Entry.any(entries, owner))
36  )

Uses (8)

Used by (1)