]> Cypherpunks.ru repositories - gostls13.git/commitdiff
cmd/compile/internal/types2: review of check.go
authorRobert Griesemer <gri@golang.org>
Tue, 23 Mar 2021 19:11:26 +0000 (12:11 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 25 Mar 2021 19:13:14 +0000 (19:13 +0000)
The changes between (equivalent, and reviewed) go/types/check.go
and check.go can be seen by comparing patchset 1 and 2. The actual
changes are removing the "// UNREVIEWED" marker.

The primary differences to go/types/check.go are:
- use of syntax instead of go/ast package
- tracing is controlled via flag not the "trace" constant

Change-Id: I1c9998afb3e0b7e29f5b169d3a4054cf22841490
Reviewed-on: https://go-review.googlesource.com/c/go/+/304109
Reviewed-by: Robert Findley <rfindley@google.com>
Trust: Robert Griesemer <gri@golang.org>

src/cmd/compile/internal/types2/check.go

index c65666e8026caf963426eb1653decf336248ab0c..7d499eb13dbf1b420c7da81c4b0192156c4015be 100644 (file)
@@ -1,4 +1,3 @@
-// UNREVIEWED
 // Copyright 2011 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
@@ -17,7 +16,7 @@ import (
 var nopos syntax.Pos
 
 // debugging/development support
-const debug = true // leave on during development
+const debug = false // leave on during development
 
 // If forceStrict is set, the type-checker enforces additional
 // rules not specified by the Go 1 spec, but which will