def calls

bend-lint-rules@0.2.0.0 · language/decreasing_call.bend:259

import bend-lint-rules@0.2.0.0/language/decreasing_call.bend as DecreasingCall
import Base
import bend-lint-api@0.2.0.0/linter/lint.bend as Lint

259# The same, if `node` is a live call of its definition to itself (`recursive`).
260def calls(
261  recursive: Bool,
262  loop: Loop,
263  path: List<&2, Lint.Above>,
264  node: Lint.Node
265) -> List<&2, Lint.Finding>:
266  match recursive:
267    case True{}:
268      call(loop, path, node)
269    case False{}:
270      []

Uses (7)

Used by (1)