]> Cypherpunks repositories - gostls13.git/commitdiff
go/types: include link to source in generated files
authorAlan Donovan <adonovan@google.com>
Wed, 27 Mar 2024 13:38:59 +0000 (09:38 -0400)
committerAlan Donovan <adonovan@google.com>
Wed, 3 Apr 2024 18:48:38 +0000 (18:48 +0000)
This makes navigation a little easier.
Also, make the "inconsistent generated files" test's
error message more explicit about which file is which.

Change-Id: Iae1fb9e496fb68325448d807469a5b0c55ceda99
Reviewed-on: https://go-review.googlesource.com/c/go/+/574715
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Auto-Submit: Alan Donovan <adonovan@google.com>

53 files changed:
src/go/types/alias.go
src/go/types/api_predicates.go
src/go/types/array.go
src/go/types/assignments.go
src/go/types/basic.go
src/go/types/builtins.go
src/go/types/builtins_test.go
src/go/types/chan.go
src/go/types/const.go
src/go/types/context.go
src/go/types/context_test.go
src/go/types/conversions.go
src/go/types/errors_test.go
src/go/types/errsupport.go
src/go/types/gccgosizes.go
src/go/types/gcsizes.go
src/go/types/generate_test.go
src/go/types/hilbert_test.go
src/go/types/infer.go
src/go/types/initorder.go
src/go/types/instantiate.go
src/go/types/instantiate_test.go
src/go/types/lookup.go
src/go/types/main_test.go
src/go/types/map.go
src/go/types/mono.go
src/go/types/named.go
src/go/types/object.go
src/go/types/object_test.go
src/go/types/objset.go
src/go/types/operand.go
src/go/types/package.go
src/go/types/pointer.go
src/go/types/predicates.go
src/go/types/scope.go
src/go/types/selection.go
src/go/types/sizes.go
src/go/types/slice.go
src/go/types/subst.go
src/go/types/termlist.go
src/go/types/termlist_test.go
src/go/types/tuple.go
src/go/types/typelists.go
src/go/types/typeparam.go
src/go/types/typeset.go
src/go/types/typestring.go
src/go/types/typeterm.go
src/go/types/typeterm_test.go
src/go/types/under.go
src/go/types/unify.go
src/go/types/universe.go
src/go/types/util_test.go
src/go/types/validtype.go

index 739dbf7a878941fb25880ce3e12f889df393411f..e32ddbcb331332687a409c8be59b4c19a4df8c21 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/alias.go
 
 // Copyright 2023 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index d712afe0ff024a71dac2dcf9a3049146db61801e..8462baae453b694b7f46c1b548f611229d269d4b 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/api_predicates.go
 
 // Copyright 2023 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index f19ce6e528b10002edfc8247142030d8b1fd371f..d0a66eae893c9beb28fa1851bcee7a3c8a139d2e 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/array.go
 
 // Copyright 2011 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index dd28e0618d7fdcc22dd1b843df15e8382afc0b36..01a55d582fc95de8895b70213e47955eff8a8d5e 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/assignments.go
 
 // Copyright 2013 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index d48361641322d078997e201c52ac0327fce038c5..685f17224ca5a58aaf3b7f5a6159194654c145b7 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/basic.go
 
 // Copyright 2011 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 2272335945995ed57f3cbd6b5a051b431d92848c..43a87498aef51b01d9bb63c035f89d520503fbad 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/builtins.go
 
 // Copyright 2012 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index e7dd50d4b86c790ae792a8f7c0a01a2bf11c4734..a76a13523af31bd8e4630ff44ef69bef21279005 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/builtins_test.go
 
 // Copyright 2013 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 940620067ce9103c54a6ea82e0ec8bb67ed60b40..ced6b11cdc5b87906f734352a9a214c9addef7f3 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/chan.go
 
 // Copyright 2011 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 4956d128834934f3bdd8964601f59fea804dc6e7..c1ed14abe2c12d8cb12e97e55fb488ce9458aed3 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/const.go
 
 // Copyright 2023 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index ce9bbf305e45aa3cc8b9199eb0f9468c7f6d937b..5fe336a82fb8e2df6ecfbf308cacc48e43aaa09d 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/context.go
 
 // Copyright 2021 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index c9f6dce728f35b23707dbeb6f4efeca70aa59f2e..cd0a15e8fedef3a3ecfd16870a574b3529ca74ee 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/context_test.go
 
 // Copyright 2021 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 16585671149dff952aeb8adb5cf16e3eba0ef885..98a1f9f661150c0488891f8b3c5e96f430b4fd21 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/conversions.go
 
 // Copyright 2012 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index b605a580e831e24c3451d0f84c871572eb509c59..a11e713f974ce95450ca8dea245753c77e334e3b 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/errors_test.go
 
 // Copyright 2020 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 9519375bfeb3f11ec19ee43082a6428c93189682..68d55aa1ac541004f0f81f1eeba7fc551f3c933a 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/errsupport.go
 
 // Copyright 2024 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 9152c811e106545989942eb9b54624f344047bfd..6aa9e1e58638943f76b76b40a213cd16283f8424 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/gccgosizes.go
 
 // Copyright 2019 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 99ab95fb9004d5473aab93a248c5257e0e4d10b7..227c53e1d280a7dc34c50ebdac33e9927d52c078 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/gcsizes.go
 
 // Copyright 2023 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 22ace576fe9ab08f694bcfc547a18f704eda3534..2b0e4a4289cbd2b352a84c73b3ec3ae07611f191 100644 (file)
@@ -10,6 +10,7 @@ package types_test
 import (
        "bytes"
        "flag"
+       "fmt"
        "go/ast"
        "go/format"
        "go/parser"
@@ -51,7 +52,7 @@ func TestGenerate(t *testing.T) {
 }
 
 func generate(t *testing.T, filename string, write bool) {
-       // parse src
+       // parse src (cmd/compile/internal/types2)
        srcFilename := filepath.FromSlash(runtime.GOROOT() + srcDir + filename)
        file, err := parser.ParseFile(fset, srcFilename, nil, parser.ParseComments)
        if err != nil {
@@ -68,26 +69,30 @@ func generate(t *testing.T, filename string, write bool) {
 
        // format AST
        var buf bytes.Buffer
-       buf.WriteString("// Code generated by \"go test -run=Generate -write=all\"; DO NOT EDIT.\n\n")
+       rel, _ := filepath.Rel(dstDir, srcDir)
+       fmt.Fprintf(&buf, "// Code generated by \"go test -run=Generate -write=all\"; DO NOT EDIT.\n")
+       fmt.Fprintf(&buf, "// Source: %s/%s\n\n", filepath.ToSlash(rel), filename)
        if err := format.Node(&buf, fset, file); err != nil {
                t.Fatal(err)
        }
        generatedContent := buf.Bytes()
 
+       // read dst (go/types)
        dstFilename := filepath.FromSlash(runtime.GOROOT() + dstDir + filename)
        onDiskContent, err := os.ReadFile(dstFilename)
        if err != nil {
                t.Fatalf("reading %q: %v", filename, err)
        }
 
-       if d := diff.Diff(filename+" (on disk)", onDiskContent, filename+" (generated)", generatedContent); d != nil {
+       // compare on-disk dst with buffer generated from src.
+       if d := diff.Diff(filename+" (on disk in "+dstDir+")", onDiskContent, filename+" (generated from "+srcDir+")", generatedContent); d != nil {
                if write {
                        t.Logf("applying change:\n%s", d)
                        if err := os.WriteFile(dstFilename, generatedContent, 0o644); err != nil {
                                t.Fatalf("writing %q: %v", filename, err)
                        }
                } else {
-                       t.Errorf("generated file content does not match:\n%s", string(d))
+                       t.Errorf("file on disk in %s is stale:\n%s", dstDir, d)
                }
        }
 }
index 434d78f929c63d0669797dc014501e440c48546c..afd7ee28bd2074c5622ac3f3184298dce06129c0 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/hilbert_test.go
 
 // Copyright 2013 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 3a3e5de4dd6df751000ceabe0d42cf639977a51d..76c3c72a1a326b753b57b487bdcf05e3680fc477 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/infer.go
 
 // Copyright 2018 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index d23844027938ae2f4c6ae976723f377d9f3ca3c2..e539219773bb324fb572c73fbdd0a6adc1e0dbfc 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/initorder.go
 
 // Copyright 2014 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index c7ea9e1c7891bc1509fa6a074c6651e01770de34..d53f5d3fba6e1c078ee16a3ede2935d927fb0f06 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/instantiate.go
 
 // Copyright 2021 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 58dfa70131adc837c2c9f84f2257e4816971b1aa..67a2eea9280bebbb9bc844ef83a1783fe81a48ba 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/instantiate_test.go
 
 // Copyright 2021 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 68bfd885dcaa16c93e3428a7efe46ac09ff3d63f..d25662ac5eaddad5099c3a369d246ef64ef2d8d4 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/lookup.go
 
 // Copyright 2013 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index fda9d102a3d3a258898cbe615935cbba3534efa2..0fac4f9791b53562ec005bc369d04de3ce4c1ad6 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/main_test.go
 
 // Copyright 2022 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index febb0d3a0b76de2722356a875c00c5fa87e12416..3ed3188a3bc72c4b0c21fb08530b0f3f31ab74fd 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/map.go
 
 // Copyright 2011 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 063947ec2a283d1936d492648ef4342c83e1d98d..65f7aa65ce916139a5eec41999105c7ba9d72e9d 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/mono.go
 
 // Copyright 2021 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 5fec5d1bafc2037c4461b046c6110fb2111143c6..b204b787db9e2944c33b29865b76e56ed35ecaed 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/named.go
 
 // Copyright 2011 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 3558c187f29231aba167b8f5db77d19194467cf6..7662e94aaf99b3bd3c04eeb2f3f1ae9e8969345d 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/object.go
 
 // Copyright 2013 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 74acdaeeeb30b0754842c0ec876b00aefa9fa6bb..c4f361e370342430e676710697a9073336650263 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/object_test.go
 
 // Copyright 2016 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index e6ea37566e319f3e0e60ea2123f07aead7c0b2b7..a2ecb717e495ebd3703e41b798ccf34724840925 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/objset.go
 
 // Copyright 2013 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 883ee62394cd663ba9f8c825326bbef715c16c3f..e1ec376a5c5af2fe8b181d477709cede4fe0b574 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/operand.go
 
 // Copyright 2012 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 0f52d5f4893d185c53c59997fed722a438721106..ac0c2e22701b1011da259ac824edb0426b5b0744 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/package.go
 
 // Copyright 2013 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 5b45ab77553186f5c772b8c46bf5ccccf7eeff8a..633f46b3fb4dfde5be204e217043321846a9778a 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/pointer.go
 
 // Copyright 2011 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index e1a32143f1bfd49cf5147d0a7a18d919579f59ac..07d07f9f1225b73833ec6ff7ff2ca5dac814bd69 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/predicates.go
 
 // Copyright 2012 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 08d94e55a8f7fdb40273f5d033b0237a7bdf1605..476b26ac3fd4c39ae76ac4693b09cefc8c7e7c7d 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/scope.go
 
 // Copyright 2013 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 18d3204fb152ac947f8b34ee2af031b93599f8ba..6f8da7afe797d296e9be923055ee6de5b8b9469b 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/selection.go
 
 // Copyright 2013 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 9e377fe2dfe90358cf091e13340b2eca82f3870f..51ea224f0b2997ce9d2cbc3bcd6f57e4eda9a2f0 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/sizes.go
 
 // Copyright 2013 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 934549c2d413ebd6404894ca343666a4b8302dd2..aad6450a6f6d03eecfaf0a5778840638ba50045b 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/slice.go
 
 // Copyright 2011 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 00796ac92483261f0b7cdf56c5ec380a6103d564..1d180abb65e3d190fbfb70ad747edcff8ecb54c2 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/subst.go
 
 // Copyright 2018 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 9bc631c0e6f519b66959451d90d48d2b3fe18eb0..e17476f5211de14d2f9a44337f2871a05d3719be 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/termlist.go
 
 // Copyright 2021 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index cf0c1905163537dc6a56416c926d6c91a7db637d..9e1e0bc441359ba4be19ea281d1be999e4bb8f1d 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/termlist_test.go
 
 // Copyright 2021 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index e5e3914bb21079a45ad5754dc2007e8ce83cddfa..7b391b27a1b6eeb37fe290830926f721ac5cb75a 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/tuple.go
 
 // Copyright 2011 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index c000de2272545a25d4ba88d1da45526a4009067c..a857ea02a981bfda9884b42ede6c0fa086ec13ac 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/typelists.go
 
 // Copyright 2021 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index a13f86c213c4da54aa9a09d4a5036bf07a459cf3..8c960311cd226ac7d3772af287fbd1b533f833d5 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/typeparam.go
 
 // Copyright 2011 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 84eb83fb5f809957600568d195a3b1c373375369..eb37de849ab10fbc2ecde4cf4bdd09b813dfb79b 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/typeset.go
 
 // Copyright 2021 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 210ab0515ff579d6b69b3b700e01bb246ca9d5f0..8ce9e869948ac808e3f2eb412a6902e98a1d8be8 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/typestring.go
 
 // Copyright 2013 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index c86442c43fe5dbb45b5dcb7b664afcf0ca1dccbf..1cd4e1651f30cd06e29e5684f28c26a7e0a4a737 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/typeterm.go
 
 // Copyright 2021 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index c6370f44fee79b985ddee657476be394c36c7d8e..543986ca1477aac56c41abe333a097fdb918607f 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/typeterm_test.go
 
 // Copyright 2021 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 3838528b531751c2229f8ca997b9670e587349f0..9f9740e7c34e5809c231f8c0b099e4d3c8c4b9e2 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/under.go
 
 // Copyright 2011 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index ffb5b4a74a46d921fa62e059ae50b21554688610..b93f9966f87dc975ee27bb8cedef5dbffbb868ae 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/unify.go
 
 // Copyright 2020 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 8154d29053b09b0ba5a0a7ed881fa535bdbc6299..9a882896c9fa9c853906549917a7551827aeb943 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/universe.go
 
 // Copyright 2011 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 70d376f0bbf5a0f112e9dd9601847f00951cc9ee..13944426aaa4423798e779c67b56d384716f056a 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/util_test.go
 
 // Copyright 2023 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 4fc46faabded8e8f3bb0815516976de7c803c5b9..f87b82c439ebc3481695ef84d75ccd84bcecdb06 100644 (file)
@@ -1,4 +1,5 @@
 // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
+// Source: ../../cmd/compile/internal/types2/validtype.go
 
 // Copyright 2022 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style