]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/types2: review of stmt.go
authorRobert Griesemer <gri@golang.org>
Mon, 29 Mar 2021 20:36:53 +0000 (13:36 -0700)
committerRobert Griesemer <gri@golang.org>
Sat, 3 Apr 2021 01:45:13 +0000 (01:45 +0000)
commit93dcaba1192bac57409602a2f767f9b2f70b5f3a
tree18d1df7c53bd29f0b21e74a4c9fcc8fb01718a07
parenta1e4657d5a89d683a2bc0c5c8d6c5d2698bb081a
cmd/compile/internal/types2: review of stmt.go

The changes between (equivalent, and reviewed) go/types/stmt.go
and stmt.go can be seen by comparing patchset 1 and 2. The actual
changes are removing the "// UNREVIEWED" marker, and minor adjustments
to get the code slightly closer to go/types/stmt.go.

The primary differences compared to go/types are:
- use of syntax rather than go/ast package, with significant
  differences in the representation of switch and select statements,
  range clauses of for statements, and inc/dec statements.
- no reporting of error codes
- use or error_ for collecting addition error information

Change-Id: I4409f62ecafd0653e4c8ef087c2580d8f0544efc
Reviewed-on: https://go-review.googlesource.com/c/go/+/305576
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/stmt.go