def index.one

bolt@1.27.0.0 · src/rules/suspicious/unused.bend:210

import bolt@1.27.0.0/src/rules/suspicious/unused.bend as Unused
import Base
import bolt@1.27.0.0/src/syntax/bind.bend as Bind

210# a use's target into the index, when it is a binder of the file
211def index.one(tg: Bind.Target, +hh: Hits) -> Hits:
212  match tg:
213    case Bind.TLocal{+tl, tc}:
214      put(path(depth(), tl), hh, Cell{tl, tc})
215    case Bind.TItem{_n}:
216      hh
217    case Bind.TQual{_a, _n}:
218      hh
219    case Bind.TFree{}:
220      hh

Uses (6)

Used by (1)