def behind_use

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

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

110# is the next use behind this position?
111def behind_use(uses: List<&2, Bind.Use>, +line: U32, +col: U32) -> Bool:
112  match uses:
113    case Nil{}:
114      False{}
115    case Con{Bind.Use{n, +l, c, tg}, rest}:
116      Bool.or(U32.is_lt(l, line), Bool.and(U32.is_eq(l, line), U32.is_lt(c, col)))

Uses (8)

Used by (1)