def calls.to
import bend-lint-rules@0.2.0.0/performance/missed_fork.bend as MissedForkimport Base
import bend-lint-api@0.2.0.0/linter/lint.bend as Lint
103# Whether an application's nodes call `target`: its function is a reference to it.
104def calls.to(kids: List<&2, Lint.Node>, target: String) -> Bool:
105 match kids:
106 case Con{Lint.Node{Lint.Reference{t}, n, s, k, f}, rest}:
107 String.eq(t, target)
108 case _:
109 False{}