1
0
mirror of https://github.com/golang/go synced 2024-11-17 07:04:44 -07:00

go/types: generate errors_test.go from types2 source

This CL reduces the amount of code that needs to be maintained
manually by about 50 LOC.

Change-Id: I022688d6db58bf58e7844487582725a23ca820be
Reviewed-on: https://go-review.googlesource.com/c/go/+/566515
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Robert Findley <rfindley@google.com>
This commit is contained in:
Robert Griesemer 2024-02-23 09:55:31 -08:00 committed by Gopher Robot
parent 720306359a
commit b899e0b8cc
2 changed files with 5 additions and 4 deletions

View File

@ -1,12 +1,12 @@
// Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
// Copyright 2020 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.
package types
import (
"testing"
)
import "testing"
func TestError(t *testing.T) {
var err error_

View File

@ -117,10 +117,11 @@ var filemap = map[string]action{
renameIdents(f, "syntax->ast")
},
"chan.go": nil,
"const.go": func(f *ast.File) { fixTokenPos(f) },
"const.go": fixTokenPos,
"context.go": nil,
"context_test.go": nil,
"conversions.go": nil,
"errors_test.go": func(f *ast.File) { renameIdents(f, "nopos->noposn") },
"errsupport.go": nil,
"gccgosizes.go": nil,
"gcsizes.go": func(f *ast.File) { renameIdents(f, "IsSyncAtomicAlign64->_IsSyncAtomicAlign64") },