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

Issue 7496048: code review 7496048: go/doc, godoc: improved note reading (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 2 months ago by gri
Modified:
12 years, 2 months ago
Reviewers:
CC:
r, cnicolaou, gobot, golang-dev
Visibility:
Public.

Description

go/doc, godoc: improved note reading - A note doesn't have to be in the first comment of a comment group anymore, and several notes may appear in the same comment group (e.g., it is fairly common to have a TODO(uid) note immediately following another comment). - Define a doc.Note type which also contains note uid and position info. - Better formatting in godoc output. The position information is not yet used, but could be used to locate the note in the source text if desired. Fixes issue 4843.

Patch Set 1 #

Patch Set 2 : diff -r dcb1a3085af8 https://code.google.com/p/go #

Patch Set 3 : diff -r 74da57c3abfe https://code.google.com/p/go #

Patch Set 4 : diff -r 0c029965805f https://code.google.com/p/go #

Patch Set 5 : diff -r 0c029965805f https://code.google.com/p/go #

Patch Set 6 : diff -r 0c029965805f https://code.google.com/p/go #

Total comments: 2

Patch Set 7 : diff -r f65ec9bdfac6 https://code.google.com/p/go #

Patch Set 8 : diff -r f65ec9bdfac6 https://code.google.com/p/go #

Patch Set 9 : diff -r e49b3c4c23db https://code.google.com/p/go #

Patch Set 10 : diff -r e49b3c4c23db https://code.google.com/p/go #

Patch Set 11 : diff -r e49b3c4c23db https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -61 lines) Patch
M lib/godoc/package.html View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download
M lib/godoc/package.txt View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/godoc/godoc.go View 1 2 3 2 chunks +7 lines, -7 lines 0 comments Download
M src/pkg/go/doc/doc.go View 1 2 3 4 3 chunks +12 lines, -8 lines 0 comments Download
M src/pkg/go/doc/reader.go View 1 2 3 4 5 6 5 chunks +58 lines, -22 lines 0 comments Download
M src/pkg/go/doc/testdata/a.0.golden View 1 2 3 4 5 6 7 8 1 chunk +15 lines, -7 lines 0 comments Download
M src/pkg/go/doc/testdata/a.1.golden View 1 2 3 4 5 6 7 8 1 chunk +15 lines, -7 lines 0 comments Download
M src/pkg/go/doc/testdata/a.2.golden View 1 2 3 4 5 6 7 8 1 chunk +15 lines, -7 lines 0 comments Download
M src/pkg/go/doc/testdata/a0.go View 1 2 3 4 5 6 1 chunk +23 lines, -0 lines 0 comments Download
M src/pkg/go/doc/testdata/template.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10
gri
Hello cnicolaou@google.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
12 years, 2 months ago (2013-03-15 00:00:40 UTC) #1
gobot
R=r (assigned by dsymonds)
12 years, 2 months ago (2013-03-15 05:56:10 UTC) #2
cnicolaou
On 2013/03/15 00:00:40, gri wrote: > Hello mailto:cnicolaou@google.com (cc: mailto:golang-dev@googlegroups.com), > > I'd like you ...
12 years, 2 months ago (2013-03-15 18:06:21 UTC) #3
cnicolaou
https://codereview.appspot.com/7496048/diff/13001/src/pkg/go/doc/testdata/a0.go File src/pkg/go/doc/testdata/a0.go (right): https://codereview.appspot.com/7496048/diff/13001/src/pkg/go/doc/testdata/a0.go#newcode30 src/pkg/go/doc/testdata/a0.go:30: // - this is the last line of note ...
12 years, 2 months ago (2013-03-15 18:06:30 UTC) #4
gri
PTAL fwiw, I cannot reproduce the case where two cases get rolled together into a ...
12 years, 2 months ago (2013-03-15 23:32:17 UTC) #5
cnicolaou
On 2013/03/15 23:32:17, gri wrote: > PTAL > > fwiw, I cannot reproduce the case ...
12 years, 2 months ago (2013-03-19 05:14:29 UTC) #6
gri
On Mon, Mar 18, 2013 at 10:14 PM, <cnicolaou@google.com> wrote: > On 2013/03/15 23:32:17, gri ...
12 years, 2 months ago (2013-03-19 05:29:38 UTC) #7
cnicolaou
On 2013/03/19 05:29:38, gri wrote: > On Mon, Mar 18, 2013 at 10:14 PM, <mailto:cnicolaou@google.com> ...
12 years, 2 months ago (2013-03-19 14:41:23 UTC) #8
cnicolaou
lgtm.
12 years, 2 months ago (2013-03-19 17:10:21 UTC) #9
gri
12 years, 2 months ago (2013-03-19 18:15:10 UTC) #10
*** Submitted as https://code.google.com/p/go/source/detail?r=46fe8915523b ***

go/doc, godoc: improved note reading

- A note doesn't have to be in the first
comment of a comment group anymore, and
several notes may appear in the same comment
group (e.g., it is fairly common to have a
TODO(uid) note immediately following another
comment).

- Define a doc.Note type which also contains
note uid and position info.

- Better formatting in godoc output. The position
information is not yet used, but could be used to
locate the note in the source text if desired.

Fixes issue 4843.

R=r, cnicolaou
CC=gobot, golang-dev
https://codereview.appspot.com/7496048
Sign in to reply to this message.

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