def let

bend-lint-rules@0.2.0.0 · language/decreasing_call.bend:275

import bend-lint-rules@0.2.0.0/language/decreasing_call.bend as DecreasingCall
import Base
import bend-lint-api@0.2.0.0/linter/lint.bend as Lint

275# The binders the lets of a definition bind, below `path`.
276def let(+u: Unit, +path: List<&2, Lint.Above>, +node: Lint.Node) -> List<&2, U32>:
277  match path node:
278    case Con{
279      Lint.Above{Lint.Node{Lint.Destructure{q}, n, s, k, f}, at},
280      up
281    } Lint.Node{Lint.PatternVariable{b, pq}, pn, ps, pk, pf}:
282      [b]
283    case _ _:
284      []

Uses (6)

Used by (1)