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

Issue 1994041: code review 1994041: go AST: First step towards augmenting AST with full typ... (Closed)

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

Description

go AST: First step towards augmenting AST with full type information. - change ast.Ident back to contain the name and adjust all dependent code - identifier object information will be added again through an optional typechecker phase (in the works). - remove tracking of scopes in parser - it's easier to do this in a separate phase (in the works) - simplify generation of popup information in godoc As a result of this change, the currently shown popup information (const, var, type, func, followed by identifier name) will not be shown anymore temporarily.

Patch Set 1 #

Patch Set 2 : code review 1994041: go AST: First step towards augmenting AST with full typ... #

Patch Set 3 : code review 1994041: go AST: First step towards augmenting AST with full typ... #

Patch Set 4 : code review 1994041: go AST: First step towards augmenting AST with full typ... #

Patch Set 5 : code review 1994041: go AST: First step towards augmenting AST with full typ... #

Patch Set 6 : code review 1994041: go AST: First step towards augmenting AST with full typ... #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+283 lines, -405 lines) Patch
M lib/godoc/source.html View 2 chunks +3 lines, -6 lines 0 comments Download
M src/cmd/cgo/ast.go View 5 chunks +5 lines, -5 lines 0 comments Download
M src/cmd/cgo/gcc.go View 5 chunks +6 lines, -6 lines 0 comments Download
M src/cmd/cgo/out.go View 1 2 3 4 5 2 chunks +7 lines, -7 lines 0 comments Download
M src/cmd/godoc/godoc.go View 1 2 3 9 chunks +76 lines, -41 lines 0 comments Download
M src/cmd/godoc/index.go View 2 chunks +4 lines, -4 lines 0 comments Download
M src/cmd/godoc/snippet.go View 2 chunks +2 lines, -2 lines 0 comments Download
M src/cmd/gofmt/gofmt.go View 2 chunks +1 line, -6 lines 0 comments Download
M src/cmd/gofmt/rewrite.go View 4 chunks +4 lines, -4 lines 0 comments Download
M src/cmd/goinstall/parse.go View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/exp/eval/expr.go View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/exp/eval/stmt.go View 8 chunks +16 lines, -16 lines 0 comments Download
M src/pkg/exp/eval/type.go View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/exp/eval/typec.go View 5 chunks +8 lines, -8 lines 0 comments Download
M src/pkg/exp/eval/world.go View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/go/ast/ast.go View 12 chunks +17 lines, -17 lines 1 comment Download
M src/pkg/go/ast/filter.go View 4 chunks +4 lines, -4 lines 0 comments Download
M src/pkg/go/ast/scope.go View 1 2 3 6 chunks +46 lines, -16 lines 3 comments Download
M src/pkg/go/doc/doc.go View 9 chunks +11 lines, -11 lines 0 comments Download
M src/pkg/go/parser/interface.go View 5 chunks +16 lines, -22 lines 0 comments Download
M src/pkg/go/parser/parser.go View 34 chunks +43 lines, -215 lines 0 comments Download
M src/pkg/go/parser/parser_test.go View 4 chunks +3 lines, -4 lines 0 comments Download
M src/pkg/go/printer/nodes.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/go/printer/printer.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/go/printer/printer_test.go View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4
gri
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 10 months ago (2010-08-13 00:46:50 UTC) #1
rsc1
LGTM http://codereview.appspot.com/1994041/diff/13001/14016 File src/pkg/go/ast/ast.go (right): http://codereview.appspot.com/1994041/diff/13001/14016#newcode633 src/pkg/go/ast/ast.go:633: Type Expr // *Ident, *ParenExpr, *SelectorExpr, *StarExpr, or ...
14 years, 10 months ago (2010-08-13 02:52:24 UTC) #2
gri
On Thu, Aug 12, 2010 at 7:52 PM, <rsc@google.com> wrote: > LGTM > > http://codereview.appspot.com/1994041/diff/13001/14016 ...
14 years, 10 months ago (2010-08-13 17:37:25 UTC) #3
gri
14 years, 10 months ago (2010-08-13 17:42:24 UTC) #4
*** Submitted as http://code.google.com/p/go/source/detail?r=24a31d895bbd ***

go AST: First step towards augmenting AST with full type information.

- change ast.Ident back to contain the name and adjust all dependent code
- identifier object information will be added again through an optional
  typechecker phase (in the works).
- remove tracking of scopes in parser - it's easier to do this in a separate
  phase (in the works)
- in godoc, generate popup info table directly instead of through a formatter
  for simpler data flow (at the expense of a little bit more code)

Runs all tests.

As a result of this change, the currently shown popup information
(const, var, type, func, followed by identifier name) will not be
shown anymore temporarily.

R=rsc
CC=golang-dev
http://codereview.appspot.com/1994041

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