def last_pos
import bolt@1.27.0.0/src/rules/pedantic/rewalk.bend as Rewalkimport Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex
500# where a let's names take effect: its last token, after the right-hand side
501def last_pos(ts: List<&2, Lex.Tok>) -> Pos:
502 match ts:
503 case Nil{}:
504 Pos{0, 0}
505 case Con{Lex.Tok{k, t, +l, +c}, rest}:
506 Pos{l, c}