aboutsummaryrefslogtreecommitdiff
path: root/src/encoding
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2016-11-08 16:01:56 -0800
committerRobert Griesemer <gri@golang.org>2016-11-09 17:48:40 +0000
commit60a9bf9f957d48856839873c6dcb699afe7da359 (patch)
tree019a1a18499cc6238a505c845129977db25873d6 /src/encoding
parentad020477f4dfe731450b6dd3dd15ea43aab0d0f1 (diff)
downloadgo-60a9bf9f957d48856839873c6dcb699afe7da359.tar.xz
cmd/compile/internal/syntax: fix error handling for Read/Parse calls
- define syntax.Error for cleaner error reporting - abort parsing after first error if no error handler is installed - make sure to always report the first error, if any - document behavior of API calls - while at it: rename ReadXXX -> ParseXXX (clearer) - adjust cmd/compile noder.go accordingly Fixes #17774. Change-Id: I7893eedea454a64acd753e32f7a8bf811ddbb03c Reviewed-on: https://go-review.googlesource.com/32950 Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/encoding')
0 files changed, 0 insertions, 0 deletions