]> Cypherpunks repositories - gostls13.git/commit
go/types: make gotype continue after syntax errors
authorRobert Griesemer <gri@golang.org>
Wed, 14 Feb 2018 00:37:51 +0000 (16:37 -0800)
committerRobert Griesemer <gri@golang.org>
Wed, 14 Feb 2018 21:23:56 +0000 (21:23 +0000)
commit70a04f6880a2082a76f6282361b607f859db950f
tree2e8571e33d87cdaa321f3c9061ec371a3079c90e
parent8f9cf5525e2ae3107c0df57ee563fcb0372710cf
go/types: make gotype continue after syntax errors

This avoids odd behavior where sometimes a lot of useful
errors are not reported simply because of a small syntax
error.

Tested manually with non-existing files. (We cannot easily
add an automatic test because this is a stand-alone binary
in this directory that must be built manually.)

Fixes #23593.

Change-Id: Iff90f95413bed7d1023fa0a5c9eb0414144428a9
Reviewed-on: https://go-review.googlesource.com/93815
Reviewed-by: Alan Donovan <adonovan@google.com>
src/go/types/gotype.go