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

Issue 81360046: code review 81360046: go.tools/cmd/godex: fix prefix generation, filtering, f... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years ago by gri
Modified:
12 years ago
Reviewers:
adonovan
CC:
golang-codereviews
Visibility:
Public.

Description

go.tools/cmd/godex: fix prefix generation, filtering, formatting Details: - auto-generate prefixes for std lib (e.g., "godex big" works now) - apply filtering to package-level objects only - nicer formatting of single-entry const, var, or type declaration

Patch Set 1 #

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

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

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

Total comments: 16

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -59 lines) Patch
M cmd/godex/godex.go View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M cmd/godex/print.go View 1 2 3 4 5 4 chunks +71 lines, -53 lines 0 comments Download
M cmd/godex/writetype.go View 1 2 chunks +0 lines, -2 lines 0 comments Download

Messages

Total messages: 7
gri
Hello adonovan@google.com (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go.tools
12 years ago (2014-03-27 23:41:40 UTC) #1
adonovan
https://codereview.appspot.com/81360046/diff/60001/cmd/godex/print.go File cmd/godex/print.go (right): https://codereview.appspot.com/81360046/diff/60001/cmd/godex/print.go#newcode65 cmd/godex/print.go:65: if obj := scope.Lookup(name); obj.Exported() { The least restrictive ...
12 years ago (2014-03-28 15:53:59 UTC) #2
gri
PTAL https://codereview.appspot.com/81360046/diff/60001/cmd/godex/print.go File cmd/godex/print.go (right): https://codereview.appspot.com/81360046/diff/60001/cmd/godex/print.go#newcode65 cmd/godex/print.go:65: if obj := scope.Lookup(name); obj.Exported() { On 2014/03/28 ...
12 years ago (2014-03-28 18:02:20 UTC) #3
gri
*** Submitted as https://code.google.com/p/go/source/detail?r=59ce91dfc20e&repo=tools *** go.tools/cmd/godex: fix prefix generation, filtering, formatting Details: - auto-generate prefixes ...
12 years ago (2014-03-28 19:22:03 UTC) #4
adonovan
https://codereview.appspot.com/81360046/diff/60001/cmd/godex/print.go File cmd/godex/print.go (right): https://codereview.appspot.com/81360046/diff/60001/cmd/godex/print.go#newcode74 cmd/godex/print.go:74: if named, _ := obj.Type().(*types.Named); named != nil && ...
12 years ago (2014-03-28 19:26:44 UTC) #5
adonovan
LGTM
12 years ago (2014-03-28 19:26:52 UTC) #6
gri
12 years ago (2014-03-28 19:28:38 UTC) #7
Message was sent while issue was closed.
https://codereview.appspot.com/81360046/diff/60001/cmd/godex/print.go
File cmd/godex/print.go (right):

https://codereview.appspot.com/81360046/diff/60001/cmd/godex/print.go#newcode74
cmd/godex/print.go:74: if named, _ := obj.Type().(*types.Named); named != nil &&
named.NumMethods() > 0 {
On 2014/03/28 19:26:44, adonovan wrote:
> On 2014/03/28 18:02:20, gri wrote:
> > On 2014/03/28 15:53:59, adonovan wrote:
> > > named!=nil is a tautology here: how can a TypeName's type be anything
other
> > than
> > > a Named?
> > 
> > it can be a *Basic :-)
> > 
> > (hence my pending CL, for after 1.3, that eliminates that possibility)
> 
> But we're inspecting a package scope here, and TypeName objects whose type is
a
> Basic only live in the universal scope.

Not correct: unsafe.Pointer is a basic type that lives in the package scope of
package unsafe.
Sign in to reply to this message.

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