def Program.callers.step
import bend-lint-api@0.2.0.0/linter/lint.bend as Lintimport Base
import bend-lint-api@0.2.0.0/shared/sets.bend as Sets
989# `callers` with the definition `info`, if it calls one of them.
990def Program.callers.step(info: Maybe<&2, Def>, +callers: Set()) -> Set():
991 match info:
992 case Some{Def{+t, ps, forks, calls, r}}:
993 Program.callers.if(Sets.has_any(calls, callers, Sets.has(callers, t)), t, callers)
994 case None{}:
995 callers