aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMark Freeman <mark@golang.org>2025-10-27 14:22:04 -0400
committerGopher Robot <gobot@golang.org>2025-11-13 13:13:03 -0800
commit7601cd388044485115532e0c25007eb4e1a7d35e (patch)
tree24f4ef1de89a9a89e0c3156d54cf7d4b0576b43b /src
parent7a372affd9eb4af18c3e2a0ce4d61f23ca1305d5 (diff)
downloadgo-7601cd388044485115532e0c25007eb4e1a7d35e.tar.xz
go/types: generate cycles.go
Change-Id: I09a31a1ccec082f5538736c48b211e4d567ee80c Reviewed-on: https://go-review.googlesource.com/c/go/+/715420 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Robert Griesemer <gri@google.com> Auto-Submit: Mark Freeman <markfreeman@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/go/types/cycles.go3
-rw-r--r--src/go/types/generate_test.go5
2 files changed, 8 insertions, 0 deletions
diff --git a/src/go/types/cycles.go b/src/go/types/cycles.go
index 87e8e9729b..d90e7de39c 100644
--- a/src/go/types/cycles.go
+++ b/src/go/types/cycles.go
@@ -1,3 +1,6 @@
+// Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/cycles.go
+
// Copyright 2025 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
diff --git a/src/go/types/generate_test.go b/src/go/types/generate_test.go
index e5e0874d17..cf2824417c 100644
--- a/src/go/types/generate_test.go
+++ b/src/go/types/generate_test.go
@@ -126,6 +126,11 @@ var filemap = map[string]action{
"context.go": nil,
"context_test.go": nil,
"conversions.go": nil,
+ "cycles.go": func(f *ast.File) {
+ renameImportPath(f, `"cmd/compile/internal/syntax"->"go/ast"`)
+ renameSelectorExprs(f, "syntax.Name->ast.Ident", "rhs.Value->rhs.Name")
+ renameSelectors(f, "Trace->_Trace")
+ },
"errors_test.go": func(f *ast.File) { renameIdents(f, "nopos->noposn") },
"errsupport.go": nil,
"gccgosizes.go": nil,