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

Issue 5700057: code review 5700057: go/ast: examples for ast.Print, ast.Inspect (Closed)

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

Description

go/ast: examples for ast.Print, ast.Inspect

Patch Set 1 #

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

Total comments: 1

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

Total comments: 6

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -0 lines) Patch
A src/pkg/go/ast/example_test.go View 1 2 3 1 chunk +136 lines, -0 lines 0 comments Download

Messages

Total messages: 5
gri
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
13 years, 3 months ago (2012-02-24 21:14:33 UTC) #1
r
http://codereview.appspot.com/5700057/diff/3/src/pkg/go/ast/example_test.go File src/pkg/go/ast/example_test.go (right): http://codereview.appspot.com/5700057/diff/3/src/pkg/go/ast/example_test.go#newcode33 src/pkg/go/ast/example_test.go:33: fmt.Println(x.Value) please show using/displaying the pos.
13 years, 3 months ago (2012-02-24 21:24:43 UTC) #2
gri
PTAL On Fri, Feb 24, 2012 at 1:24 PM, <r@golang.org> wrote: > > http://codereview.appspot.com/5700057/diff/3/src/pkg/go/ast/example_test.go > ...
13 years, 3 months ago (2012-02-24 21:30:45 UTC) #3
r
LGTM http://codereview.appspot.com/5700057/diff/2002/src/pkg/go/ast/example_test.go File src/pkg/go/ast/example_test.go (right): http://codereview.appspot.com/5700057/diff/2002/src/pkg/go/ast/example_test.go#newcode14 src/pkg/go/ast/example_test.go:14: func ExampleInspect() { // ExampleInspect demonstrates how to ...
13 years, 3 months ago (2012-02-24 21:33:57 UTC) #4
gri
13 years, 3 months ago (2012-02-24 21:44:38 UTC) #5
*** Submitted as http://code.google.com/p/go/source/detail?r=8866952aef97 ***

go/ast: examples for ast.Print, ast.Inspect

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

http://codereview.appspot.com/5700057/diff/2002/src/pkg/go/ast/example_test.go
File src/pkg/go/ast/example_test.go (right):

http://codereview.appspot.com/5700057/diff/2002/src/pkg/go/ast/example_test.g...
src/pkg/go/ast/example_test.go:14: func ExampleInspect() {
On 2012/02/24 21:33:57, r wrote:
> // ExampleInspect demonstrates how to walk the AST of a Go program.

Done.

http://codereview.appspot.com/5700057/diff/2002/src/pkg/go/ast/example_test.g...
src/pkg/go/ast/example_test.go:22: // create the AST by parsing src
On 2012/02/24 21:33:57, r wrote:
> s/c/C/
> s/$/./
> and so on throughout

Done.

http://codereview.appspot.com/5700057/diff/2002/src/pkg/go/ast/example_test.g...
src/pkg/go/ast/example_test.go:55: func ExamplePrint() {
On 2012/02/24 21:33:57, r wrote:
> // ExamplePrint shows what an AST looks like when printed for debugging.

Done.
Sign in to reply to this message.

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