aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/syntax/tokens.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2020-12-28 15:40:19 -0800
committerMatthew Dempsky <mdempsky@google.com>2020-12-29 02:28:24 +0000
commit3f370b75fb2f31754132271b2879929daa5f88fd (patch)
treef60b47532855b62b06ab1018b36cda078bf0d1a9 /src/cmd/compile/internal/syntax/tokens.go
parent07569dac4e7e03715b4171a46c220cd5d4d6295b (diff)
downloadgo-3f370b75fb2f31754132271b2879929daa5f88fd.tar.gz
go-3f370b75fb2f31754132271b2879929daa5f88fd.zip
[dev.regabi] cmd/compile: cleanup //go:generate directives
During recent refactoring, we moved mkbuiltin.go to package typecheck, but accidentally duplicated its //go:generate directive into a bunch of other files/directories. This CL cleans up the unnecessary duplicates. Also, update all of the stringer invocations to use an explicit file name, and regenerate their files. Updates #43369. Change-Id: I4e493c1fff103d742de0a839d7a3375659270b50 Reviewed-on: https://go-review.googlesource.com/c/go/+/280635 Trust: Matthew Dempsky <mdempsky@google.com> Trust: Meng Zhuo <mzh@golangcn.org> Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Meng Zhuo <mzh@golangcn.org>
Diffstat (limited to 'src/cmd/compile/internal/syntax/tokens.go')
-rw-r--r--src/cmd/compile/internal/syntax/tokens.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/compile/internal/syntax/tokens.go b/src/cmd/compile/internal/syntax/tokens.go
index 3b97cb66f2..2936b6576b 100644
--- a/src/cmd/compile/internal/syntax/tokens.go
+++ b/src/cmd/compile/internal/syntax/tokens.go
@@ -6,7 +6,7 @@ package syntax
type token uint
-//go:generate stringer -type token -linecomment
+//go:generate stringer -type token -linecomment tokens.go
const (
_ token = iota
@@ -105,7 +105,7 @@ const (
type Operator uint
-//go:generate stringer -type Operator -linecomment
+//go:generate stringer -type Operator -linecomment tokens.go
const (
_ Operator = iota