def both
import bolt@1.27.0.0/src/rules/correctness/pick.bend as Pickimport 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
37# do both branches (the third and fourth arguments) call the def?
38def both(+as: List<&2, Tree.Node>, +name: String) -> Bool:
39 Bool.and(Calls.calls(Calls.arg(as, 2n), name), Calls.calls(Calls.arg(as, 3n), name))