]> Cypherpunks repositories - gostls13.git/commitdiff
go/types: generate cycles.go
authorMark Freeman <mark@golang.org>
Mon, 27 Oct 2025 18:22:04 +0000 (14:22 -0400)
committerGopher Robot <gobot@golang.org>
Thu, 13 Nov 2025 21:13:03 +0000 (13:13 -0800)
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>

src/go/types/cycles.go
src/go/types/generate_test.go

index 87e8e9729b2058d3806de2fdd575db424ab96fbc..d90e7de39c24d0c258c32ab169a08004b1f395d2 100644 (file)
@@ -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.
index e5e0874d17f9072789592d2fb852d59a3a0b988c..cf2824417c4d599f0d0487f3d57fc23baadd7c46 100644 (file)
@@ -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,