mirror of
https://github.com/golang/go
synced 2024-11-18 14:54:40 -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) {
|
||||
type bailout struct{}
|
||||
ctxt := types.Context{
|
||||
conf := types.Config{
|
||||
Error: func(err error) {
|
||||
if !*allErrors && errorCount >= 10 {
|
||||
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() {
|
||||
|
Loading…
Reference in New Issue
Block a user