Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(45)

Issue 5500055: code review 5500055: go/doc: steps towards collecting methods of embedded types (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 7 months ago by gri
Modified:
13 years, 7 months ago
Reviewers:
CC:
golang-dev, rsc
Visibility:
Public.

Description

go/doc: steps towards collecting methods of embedded types No visible external changes yet. The current approach is a stop-gap approach: For methods of anonymous fields to be seen, the anonymous field's types must be exported. Missing: computing the actual MethodDocs and displaying them. (Depending on the operation mode of godoc, the input to go/doc is a pre-filtered AST with all non-exported nodes removed. Non- exported anonymous fields are not even seen by go/doc in this case, and it is impossible to collect associated (even exported) methods. A correct fix will require some more significant re- engineering; AST filtering will have to happen later, possibly inside go/doc.)

Patch Set 1 #

Patch Set 2 : diff -r 6bd78dcec1cd https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 6bd78dcec1cd https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 6bd78dcec1cd https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r cd38da6f62fb https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -31 lines) Patch
M src/pkg/go/doc/doc.go View 1 2 3 10 chunks +66 lines, -31 lines 0 comments Download

Messages

Total messages: 3
gri
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 7 months ago (2011-12-21 01:14:11 UTC) #1
rsc
LGTM
13 years, 7 months ago (2011-12-21 01:19:16 UTC) #2
gri
13 years, 7 months ago (2011-12-21 16:45:10 UTC) #3
*** Submitted as http://code.google.com/p/go/source/detail?r=a5559dd127ae ***

go/doc: steps towards collecting methods of embedded types

No visible external changes yet. The current approach is
a stop-gap approach: For methods of anonymous fields to be
seen, the anonymous field's types must be exported.

Missing: computing the actual MethodDocs and displaying them.

(Depending on the operation mode of godoc, the input to go/doc
is a pre-filtered AST with all non-exported nodes removed. Non-
exported anonymous fields are not even seen by go/doc in this
case, and it is impossible to collect associated (even exported)
methods. A correct fix will require some more significant re-
engineering; AST filtering will have to happen later, possibly
inside go/doc.)

R=golang-dev, rsc
CC=golang-dev
http://codereview.appspot.com/5500055
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b