• Robert Griesemer's avatar
    cmd/compile/internal/syntax: compute BranchStmt.Target statements · a5096213
    Robert Griesemer authored
    - Add new BranchStmt.Target field: It's the destination for break,
      continue, or goto statements.
    
    - When parsing with CheckBranches enabled, set the BranchStmt.Target
      field. We get the information practically for free from the branch
      checker, so keep it for further use.
    
    - Fix a couple of comments.
    
    - This could use a test, but the new Target field is currently not
      used, and writing a test is tedious w/o a general tree visitor.
      Do it later. For now, visually verified output from syntax dump.
    
    Change-Id: Id691d89efab514ad885e19ac9759506106579520
    Reviewed-on: https://go-review.googlesource.com/40988Reviewed-by: 's avatarMatthew Dempsky <mdempsky@google.com>
    a5096213
Name
Last commit
Last update
..
addr2line Loading commit data...
api Loading commit data...
asm Loading commit data...
cgo Loading commit data...
compile Loading commit data...
cover Loading commit data...
dist Loading commit data...
doc Loading commit data...
fix Loading commit data...
go Loading commit data...
gofmt Loading commit data...
internal Loading commit data...
link Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
pprof Loading commit data...
trace Loading commit data...
vendor Loading commit data...
vet Loading commit data...