def is_root
import bend-lint-pack@0.1.1.0/dead/def.bend as Defimport 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 )