def last.name

bolt@1.27.0.0 · src/rules/suspicious/empty.bend:126

import bolt@1.27.0.0/src/rules/suspicious/empty.bend as Empty
import Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex

126# the name a List.length's arguments end in, when the last two were a comma
127# and a plain name
128def last.name(ll: Last, rest: List<&2, Lex.Tok>) -> Maybe<&2, Taken>:
129  match ll:
130    case LName{nn}:
131      Some{Taken{nn, rest}}
132    case other:
133      None{}

Uses (5)

Used by (1)