From 9f26deaa1dfd1db6841c798cf60c863d8935b3da Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Fri, 19 Jul 2013 07:52:43 -0700 Subject: [PATCH] go.tools/gotype: fix build R=adonovan CC=golang-dev https://golang.org/cl/11542045 --- gotype/gotype.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gotype/gotype.go b/gotype/gotype.go index f186daeefc..856d654aba 100644 --- a/gotype/gotype.go +++ b/gotype/gotype.go @@ -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() {