Skip to content

Commit

Permalink
Fixed compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
alberts committed Dec 7, 2010
1 parent d21d5bb commit 31538cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helper.go
Expand Up @@ -91,7 +91,7 @@ func parseArgs() <-chan *ast.File {
go func() {
defer close(ch)
for _, fname := range flag.Args() {
fileNode, err := parser.ParseFile(fname, nil, 0)
fileNode, err := parser.ParseFile(token.NewFileSet(), fname, nil, 0)
if err != nil {
fmt.Fprintf(os.Stderr, "Error parsing %s: %v\n", fname, err)
os.Exit(1)
Expand Down

0 comments on commit 31538cc

Please sign in to comment.