def out.at

bolt@1.27.0.0 · src/lsp/enc.bend:174

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

174# a code-point column of a document's line, sent in an encoding; utf-32
175# never looks the line up
176def out.at(ee: Enc, lines: List<&2, String>, line: U32, col: U32) -> U32:
177  match ee:
178    case Utf16{}:
179      out.col(Utf16{}, chars(lines, line), col)
180    case Utf32{}:
181      col

Uses (6)

Used by (1)