def pos_of

bolt@1.27.0.0 · src/rules/pedantic/rewalk.bend:173

import bolt@1.27.0.0/src/rules/pedantic/rewalk.bend as Rewalk
import Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex

173# the callee, when this argument is exactly a call
174def pos_of(mm: Maybe<&2, Lex.Tok>) -> List<&2, Pos>:
175  match mm:
176    case None{}:
177      Nil{}
178    case Some{Lex.Tok{k, t, l, c}}:
179      [Pos{l, c}]

Uses (4)

Used by (1)