From: Russ Cox Date: Tue, 7 Sep 2010 13:55:05 +0000 (-0400) Subject: test/garbage/parser: sync with recent parser changes X-Git-Tag: weekly.2010-09-15~104 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6f5f558c101a5948f1d90007fe93159804743bb6;p=gostls13.git test/garbage/parser: sync with recent parser changes R=gri CC=golang-dev https://golang.org/cl/2144042 --- diff --git a/test/garbage/parser.go b/test/garbage/parser.go index 6619f6f882..cf68737fb2 100644 --- a/test/garbage/parser.go +++ b/test/garbage/parser.go @@ -30,11 +30,11 @@ func isPkgFile(dir *os.FileInfo) bool { } func pkgName(filename string) string { - file, err := parser.ParseFile(filename, nil, nil, parser.PackageClauseOnly) + file, err := parser.ParseFile(filename, nil, parser.PackageClauseOnly) if err != nil || file == nil { return "" } - return file.Name.Name() + return file.Name.Name } func parseDir(dirpath string) map[string]*ast.Package {