def roots

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

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

433# The finding about the calls of the expression a node starts, if it starts one (`root`).
434def roots(
435  root: Bool,
436  node: Lint.Node,
437  span: Maybe<&2, Lint.Span>,
438  +owner: Owner
439) -> List<&2, Lint.Finding>:
440  match root owner:
441    case True{} Owner{target, name, io, text}:
442      Call.finding(calls([node], target, [], False{}), span, owner)
443    case _ _:
444      []

Uses (9)

Used by (1)