go/parser: report error if ParseExpr argument contains extra tokens
This partly addresses issue 6099 where a gofmt rewrite is behaving unexpectedly because the provided rewrite term is not a valid expression but is silently consumed anyway. LGTM=bradfitz R=golang-codereviews, bradfitz CC=golang-codereviews https://golang.org/cl/68920044
Showing
Please
register
or
sign in
to comment