def once

bolt@1.27.0.0 · src/rules/correctness/pick.bend:41

import bolt@1.27.0.0/src/rules/correctness/pick.bend as Pick
import Base
import bolt@1.27.0.0/src/syntax/tree.bend as Tree
import bolt@1.27.0.0/src/rules/calls.bend as Calls

41# does either branch call the def?
42def once(+as: List<&2, Tree.Node>, +name: String) -> Bool:
43  Bool.or(Calls.calls(Calls.arg(as, 2n), name), Calls.calls(Calls.arg(as, 3n), name))

Uses (7)

Used by (1)