mirror of
https://github.com/golang/go
synced 2024-11-18 17:34:51 -07:00
go.tools/gotype: fix build
R=adonovan CC=golang-dev https://golang.org/cl/11542045
This commit is contained in:
parent
80d38231f7
commit
9f26deaa1d
@ -169,7 +169,7 @@ func processFiles(path string, filenames []string, allFiles bool) {
|
|||||||
|
|
||||||
func processPackage(path string, fset *token.FileSet, files []*ast.File) {
|
func processPackage(path string, fset *token.FileSet, files []*ast.File) {
|
||||||
type bailout struct{}
|
type bailout struct{}
|
||||||
ctxt := types.Context{
|
conf := types.Config{
|
||||||
Error: func(err error) {
|
Error: func(err error) {
|
||||||
if !*allErrors && errorCount >= 10 {
|
if !*allErrors && errorCount >= 10 {
|
||||||
panic(bailout{})
|
panic(bailout{})
|
||||||
@ -186,7 +186,7 @@ func processPackage(path string, fset *token.FileSet, files []*ast.File) {
|
|||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
ctxt.Check(path, fset, files...)
|
conf.Check(path, fset, files, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
Loading…
Reference in New Issue
Block a user