aboutsummaryrefslogtreecommitdiff
path: root/misc/nacl/testzip.proto
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2016-06-06 17:59:05 -0700
committerMatthew Dempsky <mdempsky@google.com>2016-08-16 14:32:09 -0700
commit504a104a2cbc7e7e2a1c01be31c97f363369fe3e (patch)
tree2ecf604f915d4e64d859ce8ba71ac51f2375fc85 /misc/nacl/testzip.proto
parent29cfbcfef42cc1ae77b35fb2cd65245e8ce8f706 (diff)
downloadgo-504a104a2cbc7e7e2a1c01be31c97f363369fe3e.tar.gz
go-504a104a2cbc7e7e2a1c01be31c97f363369fe3e.zip
cmd/compile/internal/syntax: match old parser errors and line numbers
This makes a bunch of changes to package syntax to tweak line numbers for AST nodes. For example, short variable declaration statements are now associated with the location of the ":=" token, and function calls are associated with the location of the final ")" token. These help satisfy many unit tests that assume the old parser's behavior. Because many of these changes are questionable, they're guarded behind a new "gcCompat" const to make them easy to identify and revisit in the future. A handful of remaining tests are too difficult to make behave identically. These have been updated to execute with -newparser=0 and comments explaining why they need to be fixed. all.bash now passes with both the old and new parsers. Change-Id: Iab834b71ca8698d39269f261eb5c92a0d55a3bf4
Diffstat (limited to 'misc/nacl/testzip.proto')
0 files changed, 0 insertions, 0 deletions