def before

bolt@1.27.0.0 · src/syntax/word.bend:153

import bolt@1.27.0.0/src/syntax/word.bend as Word
import Base

153# the name that ends at (line, col): what is being typed, for completion
154def before(source: String, line: U32, col: U32) -> String:
155  text(run_of(List.reverse(&2, Char, String.to_list(String.take(
156    Maybe.default(&2, String, List.get(&2, String, String.lines(source), U32.to_nat(line)), ""),
157    U32.to_nat(col))))))

Uses (12)

Used by (1)