]> Cypherpunks repositories - gostls13.git/commitdiff
test/garbage/parser: sync with recent parser changes
authorRuss Cox <rsc@golang.org>
Tue, 7 Sep 2010 13:55:05 +0000 (09:55 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 7 Sep 2010 13:55:05 +0000 (09:55 -0400)
R=gri
CC=golang-dev
https://golang.org/cl/2144042

test/garbage/parser.go

index 6619f6f882ae6970d9abc46cc79518b81bd7b78e..cf68737fb2f21ba45d9be67b9f82255ab611487a 100644 (file)
@@ -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 {