def is_local.of

bend-lint-rules@0.2.0.0 · layout/case.bend:239

import bend-lint-rules@0.2.0.0/layout/case.bend as Case
import Base

239# Whether a name is a binder's: only its own declaration names it, so a rename touches no other file.
240def is_local.of(declares: Maybe<&2, Bool>) -> Bool:
241  match declares:
242    case Some{False{}}:
243      True{}
244    case _:
245      False{}

Uses (2)

Used by (1)