def sent.one

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

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

378# a token's column and length in an encoding, on its line's chars
379def sent.one(+ee: Enc.Enc, +cs: List<&2, Char>, sem: Sem) -> Sem:
380  Sem{line, +col, +len, typ} = sem
381  +start = Enc.out.col(ee, cs, col)
382  Sem{line, start, (Enc.out.col(ee, cs, (col + len : U32)) - start : U32), typ}

Uses (8)

Used by (1)