def put

bolt@1.27.0.0 · src/lsp/semantic.bend:361

import bolt@1.27.0.0/src/lsp/semantic.bend as Semantic
import Base

361# a classified token onto the list, when it has a type
362def put(mm: Maybe<&2, U32>, +line: U32, +col: U32, +len: U32, rest: List<&2, Sem>) -> List<&2, Sem>:
363  match mm:
364    case None{}:
365      rest
366    case Some{typ}:
367      Sem{line, col, len, typ} <> rest

Uses (4)

Used by (1)