]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: set up recording of positions for declarations
authorMark Freeman <mark@golang.org>
Thu, 10 Apr 2025 15:27:29 +0000 (11:27 -0400)
committerGopher Robot <gobot@golang.org>
Tue, 6 May 2025 14:55:45 +0000 (07:55 -0700)
commit5e7f0b947c3907bd23a13864c3fea2b204f11567
treeaccf5cfc4fc9934a0947912f2a23f36f13292ec3
parent044ca4e5c878c785e2c69e5ebcb3d44bf97abc9f
go/types, types2: set up recording of positions for declarations

This creates the infrastructure needed to record compiler panics
induced somewhere beneath a declaration. For now, this is turned
off via a flag.

This does not yet use the position information for better error
messages. That is moved off to a separate CL.

Change-Id: I6b44135a84ebd2f4c0141408ba9228d72c497d55
Reviewed-on: https://go-review.googlesource.com/c/go/+/664475
Reviewed-by: Robert Griesemer <gri@google.com>
Reviewed-by: Mark Freeman <mark@golang.org>
Auto-Submit: Mark Freeman <mark@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/compile/internal/types2/check.go
src/cmd/compile/internal/types2/decl.go
src/go/types/check.go
src/go/types/decl.go