go/parser: better error position for non-invoked gp/defer functions
Added test cases and expanded test harness to handle token end positions. Also: Make sure token end positions are never outside the valid position range, as was possible in case of parse errors. Fixes #7458. LGTM=bradfitz R=bradfitz CC=golang-codereviews https://golang.org/cl/70190046
Showing
Please register or sign in to comment