]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/types2: review of check_test.go
authorRobert Griesemer <gri@golang.org>
Mon, 29 Mar 2021 19:33:45 +0000 (12:33 -0700)
committerRobert Griesemer <gri@golang.org>
Sat, 3 Apr 2021 01:45:06 +0000 (01:45 +0000)
commita1e4657d5a89d683a2bc0c5c8d6c5d2698bb081a
treeb62bb1f707b3c45cdeb6889dc287a36353ffab1a
parent6454b2720ff4854ce92567d22fc7c6c7d497e6a2
cmd/compile/internal/types2: review of check_test.go

The changes between (equivalent, and reviewed) go/types/check_test.go
and check_test.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/check_test.go.

The primary differences compared to go/types are:
- use of syntax rather than go/ast package
- re-implemented mechanism for error matching and elimination
  based on the syntax.ErrorMap mechanism (there's no exported
  access to the syntax scanner)
- error matching permits for column tolerances because types2
  column information doesn't match go/types column information

Change-Id: I8ae6bc93dfa2b517673b642064a1f09166755286
Reviewed-on: https://go-review.googlesource.com/c/go/+/305573
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/check_test.go