def Scope.has
import bend-lint-pack@0.1.1.0/common.bend as Commonimport Base
import bend-lint-pack@0.1.1.0/vendor/lint.bend as Lint
455def Scope.has(scope: Scope, span: Maybe<&2, Lint.Span>) -> Bool:
456 match scope:
457 case Scope{imports, root}:
458 Bool.or(imports, in_root(root, span))