def last.step

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

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

111# what a token leaves of the last tokens: a comma, a name after a comma, or
112# anything else
113def last.step(+kk: Lex.TokKind, +tt: String, ll: Last) -> Last:
114  match kk:
115    case Lex.TComma{}:
116      LComma{}
117    case Lex.TName{}:
118      match ll:
119        case LComma{}:
120          LName{code(kk, tt)}
121        case other:
122          LOther{}
123    case other:
124      LOther{}

Uses (4)

Used by (1)