def search.stmt

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

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/tree.bend as Tree

335# a statement of the kind and own tokens, the chain after it rest: a let is
336# read, anything else gives nothing
337def search.stmt(
338  kind: Tree.StmtKind,
339  kids: Tree.Node,
340  rest: Tree.Node,
341  +name: String,
342  +path: String
343) -> List<&2, F.Finding>:
344  match kind:
345    case Tree.SLet{}:
346      search.lead(kids, rest, name, path)
347    case _other:
348      []

Uses (6)

Used by (1)