]> Cypherpunks repositories - gostls13.git/commit
go/parser: stop ParseFile after ten errors.
authorMichael Matloob <matloob@google.com>
Thu, 14 Feb 2013 19:26:21 +0000 (11:26 -0800)
committerRobert Griesemer <gri@golang.org>
Thu, 14 Feb 2013 19:26:21 +0000 (11:26 -0800)
commit2cd96806f4b04545b056ddaa53234fd15e821a1f
treeff201ca963559b2bbccb1266a78b200120ab62a7
parent208c83096a19154cb5012f8121c1f6bde0772c40
go/parser: stop ParseFile after ten errors.

There wil be a panic if more than ten errors are encountered. ParseFile
will recover and return the ErrorList.

Fixes #3943.

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/7307085
src/pkg/go/parser/error_test.go
src/pkg/go/parser/interface.go
src/pkg/go/parser/parser.go