def search.callee

bolt@1.27.0.0 · src/rules/correctness/pick.bend:287

import bolt@1.27.0.0/src/rules/correctness/pick.bend as Pick
import Base
import bolt@1.27.0.0/src/finding.bend as F
import bolt@1.27.0.0/src/syntax/lex.bend as Lex
import bolt@1.27.0.0/src/syntax/tree.bend as Tree

287# past the bound name and `=`: the leaf that names the call
288def search.callee(
289  kx: Lex.TokKind,
290  +xx: String,
291  +ee: String,
292  r2: Tree.Node,
293  rest: Tree.Node,
294  +name: String,
295  +path: String
296) -> List<&2, F.Finding>:
297  match r2:
298    case Tree.NCons{Tree.Leaf{Lex.Tok{_kn, +n, +l, +c}}, r3}:
299      search.call(kx, xx, ee, n, l, c, r3, rest, name, path)
300    case _other:
301      []

Uses (7)

Used by (1)