go/src
Robert Griesemer d08dd8bec1 go/scanner: clean up error interface
Issue 2856 asks for a rename of a few methods to a
more idiomatic Go style. This is a very early API
that evolved organically throughout the years.
Together with the fact that ErrorVectors were embedded
in other data structures (e.g. Parser), just renaming
methods (e.g. GetError -> Error) would lead to undesired
behavior (e.g., Parser would act like an Error). Instead,
cleaned up API a bit more:

- removed ErrorVector in favor of ErrorList (already
present)
- simplified Scanner.Init by making the error handler a
function instead of requiring an ErrorHandler implementation
- adjusted helper functions accordingly
- updated Go 1 doc

Fixes #2856.

R=rsc
CC=golang-dev
https://golang.org/cl/5624047
2012-02-08 11:41:32 -08:00
..
cmd cmd/dist: pass correct -DGOARCH_$GOARCH flag to gcc. 2012-02-08 14:36:38 -05:00
lib9 build: delete make paraphernalia 2012-02-06 13:34:25 -05:00
libbio build: delete make paraphernalia 2012-02-06 13:34:25 -05:00
libmach build: delete make paraphernalia 2012-02-06 13:34:25 -05:00
pkg go/scanner: clean up error interface 2012-02-08 11:41:32 -08:00
Make.dist build: delete make paraphernalia 2012-02-06 13:34:25 -05:00
all.bash build: use cmd/dist 2012-02-04 00:54:08 -05:00
all.bat build: dist-based build for windows 2012-02-04 00:48:31 -05:00
clean.bash build: use cmd/dist 2012-02-04 00:54:08 -05:00
make.bash build: add make.bash --dist-tool 2012-02-06 13:48:43 -05:00
make.bat build: dist-based build for windows 2012-02-04 00:48:31 -05:00
run.bash build: use cmd/dist 2012-02-04 00:54:08 -05:00
run.bat build: dist-based build for windows 2012-02-04 00:48:31 -05:00
sudo.bash build: fix sudo.bash. 2012-02-05 14:50:38 +11:00