)]}' { "commit": "504a104a2cbc7e7e2a1c01be31c97f363369fe3e", "tree": "2ecf604f915d4e64d859ce8ba71ac51f2375fc85", "parents": [ "29cfbcfef42cc1ae77b35fb2cd65245e8ce8f706" ], "author": { "name": "Matthew Dempsky", "email": "mdempsky@google.com", "time": "Mon Jun 06 17:59:05 2016 -0700" }, "committer": { "name": "Matthew Dempsky", "email": "mdempsky@google.com", "time": "Tue Aug 16 14:32:09 2016 -0700" }, "message": "cmd/compile/internal/syntax: match old parser errors and line numbers\n\nThis makes a bunch of changes to package syntax to tweak line numbers\nfor AST nodes. For example, short variable declaration statements are\nnow associated with the location of the \":\u003d\" token, and function calls\nare associated with the location of the final \")\" token. These help\nsatisfy many unit tests that assume the old parser\u0027s behavior.\n\nBecause many of these changes are questionable, they\u0027re guarded behind\na new \"gcCompat\" const to make them easy to identify and revisit in\nthe future.\n\nA handful of remaining tests are too difficult to make behave\nidentically. These have been updated to execute with -newparser\u003d0 and\ncomments explaining why they need to be fixed.\n\nall.bash now passes with both the old and new parsers.\n\nChange-Id: Iab834b71ca8698d39269f261eb5c92a0d55a3bf4\n", "tree_diff": [ { "type": "modify", "old_id": "fee155c97c0c1ecb8714cd07abb44ff794ebd4f0", "old_mode": 33188, "old_path": "src/cmd/compile/internal/syntax/nodes.go", "new_id": "d450654343a240a7261c6627971cb4b44c6bcc2c", "new_mode": 33188, "new_path": "src/cmd/compile/internal/syntax/nodes.go" }, { "type": "modify", "old_id": "f267d4b2c9577dafb086b2e737bc680dbc50e92b", "old_mode": 33188, "old_path": "src/cmd/compile/internal/syntax/parser.go", "new_id": "9544001a2e096ec57604e96e7cc0d29c8899b7f8", "new_mode": 33188, "new_path": "src/cmd/compile/internal/syntax/parser.go" }, { "type": "modify", "old_id": "0f0f1ead9a2ad6afcb637032c1685b7abff33dc3", "old_mode": 33188, "old_path": "src/cmd/compile/internal/syntax/scanner.go", "new_id": "d02bb6d11b988d72a18869224a8e1e4e69178975", "new_mode": 33188, "new_path": "src/cmd/compile/internal/syntax/scanner.go" }, { "type": "modify", "old_id": "69e81aceca8a19aeff7ab51631f519245ea584f2", "old_mode": 33188, "old_path": "src/cmd/compile/internal/syntax/scanner_test.go", "new_id": "4b582ccfdfb0d63c4d0506ee7ddcecc0618334a3", "new_mode": 33188, "new_path": "src/cmd/compile/internal/syntax/scanner_test.go" }, { "type": "modify", "old_id": "f32d48048254df25d272daee452a45622f6aab94", "old_mode": 33188, "old_path": "test/fixedbugs/issue11610.go", "new_id": "c9d6f8b2183e0bd70241b13dcf72977858e01151", "new_mode": 33188, "new_path": "test/fixedbugs/issue11610.go" }, { "type": "modify", "old_id": "20426b4fa0826352b0189e7f970f267fffbab2bb", "old_mode": 33188, "old_path": "test/nul1.go", "new_id": "624101b621fac42ac4ba5a78ad1207c01cef1e52", "new_mode": 33188, "new_path": "test/nul1.go" }, { "type": "modify", "old_id": "11ff5c5d9b95c275e81ff965245a71b9e1d5e19d", "old_mode": 33188, "old_path": "test/switch2.go", "new_id": "11b85d3692ceadd45f88a4cec72de436dd4aff0e", "new_mode": 33188, "new_path": "test/switch2.go" }, { "type": "modify", "old_id": "2e9929b6653885130161fa6320ec51ed89f01ae6", "old_mode": 33188, "old_path": "test/syntax/chan1.go", "new_id": "22724fd297744f21d184157e4ae3a4851729c979", "new_mode": 33188, "new_path": "test/syntax/chan1.go" }, { "type": "modify", "old_id": "6315f34eafb115614c0ad111c42aae83fd1b2af1", "old_mode": 33188, "old_path": "test/syntax/semi4.go", "new_id": "262926a01e3d53c104be604154850d7d8809750d", "new_mode": 33188, "new_path": "test/syntax/semi4.go" } ] }