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

Issue 1981044: code review 1981044: go/ast, gofmt: facility for printing AST nodes (Closed)

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

Description

go/ast, gofmt: facility for printing AST nodes go/ast: implement Fprint and print functions to print AST nodes gofmt: print AST nodes by setting -ast flag

Patch Set 1 #

Patch Set 2 : code review 1981044: go/ast, gofmt: facility for printing AST nodes #

Patch Set 3 : code review 1981044: go/ast, gofmt: facility for printing AST nodes #

Total comments: 15

Patch Set 4 : code review 1981044: go/ast, gofmt: facility for printing AST nodes #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -1 line) Patch
M src/cmd/gofmt/doc.go View 1 chunk +2 lines, -0 lines 0 comments Download
M src/cmd/gofmt/gofmt.go View 2 chunks +5 lines, -0 lines 0 comments Download
M src/pkg/go/ast/Makefile View 1 chunk +1 line, -0 lines 0 comments Download
A src/pkg/go/ast/print.go View 1 2 3 1 chunk +197 lines, -0 lines 2 comments Download
M src/pkg/go/token/token.go View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10
gri
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 9 months ago (2010-08-18 22:54:37 UTC) #1
gri
FYI. For: package main import "fmt" func main() { fmt.Println("Hello, World!") } the output is: ...
14 years, 9 months ago (2010-08-18 23:23:56 UTC) #2
r
http://codereview.appspot.com/1981044/diff/5001/1008 File src/pkg/go/ast/print.go (right): http://codereview.appspot.com/1981044/diff/5001/1008#newcode43 src/pkg/go/ast/print.go:43: // not printed. that's an odd design. i would ...
14 years, 9 months ago (2010-08-19 00:23:05 UTC) #3
rsc1
LGTM but wait for r http://codereview.appspot.com/1981044/diff/5001/1008 File src/pkg/go/ast/print.go (right): http://codereview.appspot.com/1981044/diff/5001/1008#newcode25 src/pkg/go/ast/print.go:25: switch v := value.(type) ...
14 years, 9 months ago (2010-08-19 01:57:53 UTC) #4
gri
PTAL. Looking for stronger arguments re: the filter design. - gri http://codereview.appspot.com/1981044/diff/5001/1008 File src/pkg/go/ast/print.go (right): ...
14 years, 9 months ago (2010-08-19 06:10:10 UTC) #5
r
> > There is no NilValue anywhere. What am I missing? > > But I ...
14 years, 9 months ago (2010-08-19 07:57:37 UTC) #6
r
LGTM leaving it up to you whether to flip the boolean on filter http://codereview.appspot.com/1981044/diff/11001/12004 File ...
14 years, 9 months ago (2010-08-19 07:58:03 UTC) #7
rsc
> Looking for stronger arguments re: the filter design. Standard ML, OCaml, Haskell, JavaScript, Scheme, ...
14 years, 9 months ago (2010-08-19 15:50:21 UTC) #8
gri
Inverted meaning of filter result and submitted. - Robert On Thu, Aug 19, 2010 at ...
14 years, 9 months ago (2010-08-19 16:39:34 UTC) #9
gri
14 years, 9 months ago (2010-08-19 16:39:40 UTC) #10
*** Submitted as http://code.google.com/p/go/source/detail?r=f85cda79d894 ***

go/ast, gofmt: facility for printing AST nodes

go/ast: implement Fprint and print functions to
print AST nodes

gofmt: print AST nodes by setting -ast flag

R=rsc, r
CC=golang-dev
http://codereview.appspot.com/1981044

Committer: Robert Griesemer <gri@golang.org>
Sign in to reply to this message.

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