summaryrefslogtreecommitdiff
path: root/src/cmd/internal/diff/diff.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2019-10-21 17:01:14 -0700
committerRobert Griesemer <gri@golang.org>2019-10-28 20:47:07 +0000
commit3e457030d9a0b9ed23d9d5b346723c54ccae1a8e (patch)
tree2b05e7743a26b313a10ea0872f6bb475dca4afa6 /src/cmd/internal/diff/diff.go
parent9be36ba7b46c71e9b58c71cfb75a890c3ed4e8a3 (diff)
downloadgo-git-3e457030d9a0b9ed23d9d5b346723c54ccae1a8e.tar.gz
go/parser, go/ast: correctly take into account presence of } in block
Correctly track whether the closing } of a block (or a function body) is present or not in the AST and report correct End() positions in each case. There are more cases like this but this CL addresses an immediate issue and sets a precedent for how to fix similar cases if a need arises. Fixes #33649. Change-Id: Id6662ddaac09f3c15f8003edc9275fe2b0c41c78 Reviewed-on: https://go-review.googlesource.com/c/go/+/202581 Run-TryBot: Robert Griesemer <gri@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Alan Donovan <adonovan@google.com>
Diffstat (limited to 'src/cmd/internal/diff/diff.go')
0 files changed, 0 insertions, 0 deletions