mirror of
https://github.com/golang/go.git
synced 2026-06-27 03:11:23 +00:00
go/types: generate alias_test.go from respective types2 source
Change-Id: Ia5be3eea95583ed2b32f568f7689d414205c5d21 Reviewed-on: https://go-review.googlesource.com/c/go/+/780101 Reviewed-by: Robert Griesemer <gri@google.com> Auto-Submit: Robert Griesemer <gri@google.com> LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: David Chase <drchase@google.com>
This commit is contained in:
parent
8494d25c4c
commit
45f1313c18
2 changed files with 8 additions and 1 deletions
|
|
@ -1,4 +1,7 @@
|
|||
// Copyright 2025 The Go Authors. All rights reserved.
|
||||
// Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
|
||||
// Source: ../../cmd/compile/internal/types2/alias_test.go
|
||||
|
||||
// Copyright 2026 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.
|
||||
|
||||
|
|
|
|||
|
|
@ -101,6 +101,10 @@ type action func(in *ast.File)
|
|||
|
||||
var filemap = map[string]action{
|
||||
"alias.go": fixTokenPos,
|
||||
"alias_test.go": func(f *ast.File) {
|
||||
renameImportPath(f, `"cmd/compile/internal/types2"->"go/types"`)
|
||||
renameIdents(f, "types2->types")
|
||||
},
|
||||
"assignments.go": func(f *ast.File) {
|
||||
renameImportPath(f, `"cmd/compile/internal/syntax"->"go/ast"`)
|
||||
renameSelectorExprs(f, "syntax.Name->ast.Ident", "ident.Value->ident.Name", "ast.Pos->token.Pos") // must happen before renaming identifiers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue