def at_head_use
import bolt@1.27.0.0/src/lsp/semantic.bend as Semanticimport Base
import bolt@1.27.0.0/src/syntax/bind.bend as Bind
93# does the next use sit at this position?
94def at_head_use(uses: List<&2, Bind.Use>, +line: U32, +col: U32) -> Bool:
95 match uses:
96 case Nil{}:
97 False{}
98 case Con{Bind.Use{n, l, c, tg}, rest}:
99 Bool.and(U32.is_eq(l, line), U32.is_eq(c, col))