Commit 6f5f558c authored by Russ Cox's avatar Russ Cox

test/garbage/parser: sync with recent parser changes

R=gri
CC=golang-dev
https://golang.org/cl/2144042
parent 2eb00d57
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment