def of_tok
bolt@1.27.0.0 · src/lsp/semantic.bend:320
import bolt@1.27.0.0/src/lsp/semantic.bend as Semantic
import Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex
320
321
322def of_tok(
323 kk: Lex.TokKind,
324 cur: Cursor,
325 all: Kinds,
326 name: String,
327 line: U32,
328 col: U32,
329 braced: Bool
330) -> Step:
331 match kk:
332 case Lex.TKey{}:
333 Step{Some{0}, cur}
334 case Lex.TName{}:
335 name_step(cur, all, name, line, col, braced)
336 case Lex.TUpper{}:
337 name_step(cur, all, name, line, col, braced)
338 case Lex.TDotted{}:
339 name_step(cur, all, name, line, col, braced)
340 case other:
341 Step{None{}, cur}