]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/syntax: implement Pos.FileBase method (cleanup)
authorRobert Griesemer <gri@golang.org>
Fri, 17 May 2024 04:17:23 +0000 (21:17 -0700)
committerGopher Robot <gobot@golang.org>
Mon, 20 May 2024 20:44:57 +0000 (20:44 +0000)
commit8b990f259255e9faf1ee5acee0dabf8de9ba9165
treea380505168536356cf5fa71097e74e989d86c923
parentb8a410c434b297e95270dea17982c02de0f6609b
cmd/compile/internal/syntax: implement Pos.FileBase method (cleanup)

Factor out file base computation into a method.

Change-Id: Ia6de100459b6df2919f2320872890320aa88866d
Reviewed-on: https://go-review.googlesource.com/c/go/+/586156
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/noder/irgen.go
src/cmd/compile/internal/syntax/pos.go
src/cmd/compile/internal/types2/check.go
src/cmd/compile/internal/types2/version.go