def calls.to

bend-lint-rules@0.2.0.0 · performance/missed_fork.bend:103

import bend-lint-rules@0.2.0.0/performance/missed_fork.bend as MissedFork
import 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{}

Uses (6)

Used by (2)