def called.at
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
import bend-lint-api@0.2.0.0/shared/lists.bend as Lists
111# `out` with the span of a call of `target` (if `call`), where the call is.
112def called.at(
113 call: Bool,
114 span: Maybe<&2, Lint.Span>,
115 out: List<&2, Lint.Span>
116) -> List<&2, Lint.Span>:
117 match call:
118 case True{}:
119 Lists.push(Lint.Span, span, out)
120 case False{}:
121 out