def locations

bolt@1.27.0.0 · src/lsp/proto.bend:293

import bolt@1.27.0.0/src/lsp/proto.bend as Proto
import Base
import emerging-ezjson@1.2.0.0/main.bend as Ezjson
import emerging-ezjson@1.2.0.0/src/value.bend as J
import bolt@1.27.0.0/src/syntax/bind.bend as Bind
import bolt@1.27.0.0/src/lsp/enc.bend as Enc

293# the positions a name is at, as Locations
294def locations(cc: Enc.Cols, uri: String, name: String, ps: List<&2, Bind.Pos>) -> J.Json:
295  Ezjson.arr(locations.go(ps, cc, uri, name))

Uses (7)

Used by (1)