def sent.one
import bolt@1.27.0.0/src/lsp/semantic.bend as Semanticimport 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}