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

Issue 7883044: code review 7883044: godoc: link identifiers to declarations (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by gri
Modified:
12 years, 1 month ago
Reviewers:
adg
CC:
r, golang-dev
Visibility:
Public.

Description

godoc: link identifiers to declarations The changes are almost completely self-contained in the new file linkify.go. The other changes are minimal and should not disturb the currently working godoc, in anticipation of Go 1.1. To disable the feature in case of problems, set -links=false. Fixes issue 2063.

Patch Set 1 #

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

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

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

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

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

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

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

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

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

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

Patch Set 12 : diff -r 19eb878576c6 https://code.google.com/p/go #

Patch Set 13 : diff -r 19eb878576c6 https://code.google.com/p/go #

Total comments: 8

Patch Set 14 : diff -r e44cbac8211e https://code.google.com/p/go #

Patch Set 15 : diff -r e44cbac8211e https://code.google.com/p/go #

Patch Set 16 : diff -r e44cbac8211e https://code.google.com/p/go #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+251 lines, -8 lines) Patch
M src/cmd/godoc/format.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +5 lines, -5 lines 0 comments Download
M src/cmd/godoc/godoc.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +36 lines, -3 lines 0 comments Download
A src/cmd/godoc/linkify.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +210 lines, -0 lines 2 comments Download

Messages

Total messages: 8
gri
Hello adg@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
12 years, 1 month ago (2013-03-26 00:03:48 UTC) #1
gri
Hello adg@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 1 month ago (2013-03-26 05:01:22 UTC) #2
r
https://codereview.appspot.com/7883044/diff/30001/src/cmd/godoc/format.go File src/cmd/godoc/format.go (right): https://codereview.appspot.com/7883044/diff/30001/src/cmd/godoc/format.go#newcode230 src/cmd/godoc/format.go:230: // of token sel in the Go src text ...
12 years, 1 month ago (2013-03-26 17:54:34 UTC) #3
gri
Hello adg@golang.org, r@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 1 month ago (2013-03-26 18:07:52 UTC) #4
r
LGTM
12 years, 1 month ago (2013-03-26 18:12:52 UTC) #5
gri
*** Submitted as https://code.google.com/p/go/source/detail?r=495b88abe2b2 *** godoc: link identifiers to declarations The changes are almost completely ...
12 years, 1 month ago (2013-03-26 18:14:33 UTC) #6
adg
https://codereview.appspot.com/7883044/diff/43001/src/cmd/godoc/linkify.go File src/cmd/godoc/linkify.go (right): https://codereview.appspot.com/7883044/diff/43001/src/cmd/godoc/linkify.go#newcode170 src/cmd/godoc/linkify.go:170: var predeclared = map[string]bool{ This map is already defined ...
12 years, 1 month ago (2013-03-27 03:38:50 UTC) #7
gri
12 years, 1 month ago (2013-03-27 04:32:59 UTC) #8
Message was sent while issue was closed.
https://codereview.appspot.com/7883044/diff/43001/src/cmd/godoc/linkify.go
File src/cmd/godoc/linkify.go (right):

https://codereview.appspot.com/7883044/diff/43001/src/cmd/godoc/linkify.go#ne...
src/cmd/godoc/linkify.go:170: var predeclared = map[string]bool{
On 2013/03/27 03:38:51, adg wrote:
> This map is already defined internally in go/doc. Do they match?

go/doc has three separate maps but together they should match. Haven't made up
my mind as to whether I should export a function (isBuiltinName or some such).
I'll have a look again.
Sign in to reply to this message.

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