Mirror of https://github.com/cue-lang/cue cuelang.org
cue go
Something went wrong. Try again.
all: make use of adt.Pos consistently master
To call adt.Node.Source().Pos() safely with nil checks. We had two other "pos" funcs, in the cue and adt package, as well as various hand-rolled versions in many func bodies. Signed-off-by: Daniel Martí <mvdan@mvdan.cc> Change-Id: I7d02082fc5759867751f1babd0f9a163d0203ff9 Reviewed-on: https://cue.gerrithub.io/c/cue-lang/cue/+/1227393 Reviewed-by: Matthew Sackman <matthew@cue.works> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Author Daniel Martí Date (Dec 3, 2025, 11:48 AM UTC) Commit 132e8b91 132e8b91b2cf1bac09a1747dcde7ec121ea7497b Parent e018a993 e018a993414b0ce77d63fad258267aa8b61dc8f1