]> Cypherpunks repositories - gostls13.git/commit
go/types: remove explicit path parameter from most type-checker functions (cleanup)
authorRobert Griesemer <gri@golang.org>
Tue, 21 Aug 2018 19:01:32 +0000 (12:01 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 30 Aug 2018 22:54:34 +0000 (22:54 +0000)
commit43469ddf7450a056edf536494f6a05272662ba94
tree695d9c71fdbcdc8d06e21fe0ab3a499987558487
parentce2e883afc02585188d215cdda265c6a27f14a41
go/types: remove explicit path parameter from most type-checker functions (cleanup)

Now that most of the type-checker is using the object-coloring mechanism
to detect cycles, remove the explicit path parameter from the functions
that don't rely on it anymore.

Some of the syntactic-based resolver code (for aliases, interfaces)
still use an explicit path; leaving those unchanged for now.

The function cycle was moved from typexpr.go (where it is not used
anymore) to resolver.go (where it's still used). It has not changed.

Fixes #25773.

Change-Id: I2100adc8d66d5da9de9277dee94a1f08e5a88487
Reviewed-on: https://go-review.googlesource.com/130476
Reviewed-by: Alan Donovan <adonovan@google.com>
src/go/types/check.go
src/go/types/decl.go
src/go/types/expr.go
src/go/types/interfaces.go
src/go/types/resolver.go
src/go/types/typexpr.go