]> Cypherpunks repositories - gostls13.git/commit
go/types: adopt spec terminology, use 'embedded' rather then 'anonyous' field
authorRobert Griesemer <gri@golang.org>
Thu, 10 May 2018 20:33:47 +0000 (13:33 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 10 May 2018 20:54:21 +0000 (20:54 +0000)
commit903f095c1ae3cafc40855662c69722121c42e3a7
treef0b3f4f6248f537b735629e5d84c703ca6a9cb3d
parentb98ffdf859f0fec2acb1765bf5b62ce1e4587c2b
go/types: adopt spec terminology, use 'embedded' rather then 'anonyous' field

Commit f8b4123613a (https://go-review.googlesource.com/35108) adjusted
the spec to uniformly use 'embedded' rather than 'anonymous' for struct
embedded fields. Adjust go/types' internal terminology.

Provide an additional accessor Var.IsEmbedded().

This is essentially a rename of an internal field and adjustments of
documentation.

Change-Id: Icd07aa192bc5df7a2ee103185fa7e9c55e8f1ac3
Reviewed-on: https://go-review.googlesource.com/112716
Run-TryBot: Robert Griesemer <gri@golang.org>
Reviewed-by: Alan Donovan <adonovan@google.com>
src/go/types/api.go
src/go/types/lookup.go
src/go/types/methodset.go
src/go/types/object.go
src/go/types/predicates.go
src/go/types/testdata/decls0.src
src/go/types/type.go
src/go/types/typestring.go
src/go/types/typexpr.go