]> Cypherpunks.ru repositories - gostls13.git/commit
go/types: make tracing configurable (matching types2)
authorRobert Griesemer <gri@golang.org>
Mon, 9 Jan 2023 21:02:08 +0000 (13:02 -0800)
committerGopher Robot <gobot@golang.org>
Tue, 17 Jan 2023 19:55:08 +0000 (19:55 +0000)
commit4210ebcd089f216798152b5e523eaa71fbefe65d
tree8bed837d0278689445b0303fe298014f0403396e
parent839c84255034d5181bb69e8d10070119ab97d9fe
go/types: make tracing configurable (matching types2)

This CL replaces the internal trace flag with Config.trace.
While unexported, it can still be set for testing via reflection.
The typical use is for manual tests, where -v (verbose) turns on
tracing output. Typical use:

        go test -run Manual -v

This change makes go/types match types2 behavior.

Change-Id: I22842f4bba8fd632efe5929c950f4b1cab0a8569
Reviewed-on: https://go-review.googlesource.com/c/go/+/461081
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
12 files changed:
src/go/types/api.go
src/go/types/call.go
src/go/types/check.go
src/go/types/check_test.go
src/go/types/decl.go
src/go/types/errors.go
src/go/types/expr.go
src/go/types/named.go
src/go/types/stmt.go
src/go/types/subst.go
src/go/types/typeset.go
src/go/types/typexpr.go