]> Cypherpunks repositories - gostls13.git/commit
cmd/doc: suppress the error message for *package.ident embedded in struct type
authorelpinal <6elpinal@gmail.com>
Sat, 16 Dec 2017 06:04:05 +0000 (15:04 +0900)
committerRobert Griesemer <gri@golang.org>
Wed, 20 Dec 2017 19:05:19 +0000 (19:05 +0000)
commit0504cd68e6561b962354821bccf04f5cf080662e
treeebf7c6e98ff920393f03d8fec93e5aa445927c5d
parent9c64c65d0ea251c3ac4d49556f10ad6ceb532f52
cmd/doc: suppress the error message for *package.ident embedded in struct type

The current implementation prints a log, "invalid program: unexpected
type for embedded field", when the form *package.ident is embedded in
a struct declaration.

Note that since valid qualified identifiers must be exported, the result
for a valid program does not change.

Change-Id: If8b9d7056c56b6a6c5482eb749168a63c65ef685
Reviewed-on: https://go-review.googlesource.com/84436
Reviewed-by: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/doc/doc_test.go
src/cmd/doc/pkg.go
src/cmd/doc/testdata/pkg.go