def via.of

bolt@1.27.0.0 · src/rules/suspicious/concat.bend:98

import bolt@1.27.0.0/src/rules/suspicious/concat.bend as Concat
import Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex

98# what the let of a lone name appends onto
99def via.of(mm: Maybe<&2, Lex.Tok>, +lets: List<&2, Let>) -> Maybe<&2, Lex.Tok>:
100  match mm:
101    case None{}:
102      None{}
103    case Some{Lex.Tok{k, +t, l, c}}:
104      find(lets, t)

Uses (5)

Used by (1)