diff --git a/cmd/gotype/doc.go b/cmd/gotype/doc.go index 4d980f80dc..bff5023956 100644 --- a/cmd/gotype/doc.go +++ b/cmd/gotype/doc.go @@ -59,5 +59,3 @@ To verify the output of a pipe: */ package main - -// BUG(gri): At the moment, only single-file scope analysis is performed. diff --git a/cmd/gotype/gotype.go b/cmd/gotype/gotype.go index 856d654aba..5dc71ac93e 100644 --- a/cmd/gotype/gotype.go +++ b/cmd/gotype/gotype.go @@ -74,7 +74,7 @@ func parse(fset *token.FileSet, filename string, src []byte) *ast.File { } // parse entire file - mode := parser.DeclarationErrors + var mode parser.Mode if *allErrors { mode |= parser.AllErrors }