]> Cypherpunks repositories - gostls13.git/commit
go AST: First step towards augmenting AST with full type information.
authorRobert Griesemer <gri@golang.org>
Fri, 13 Aug 2010 17:42:18 +0000 (10:42 -0700)
committerRobert Griesemer <gri@golang.org>
Fri, 13 Aug 2010 17:42:18 +0000 (10:42 -0700)
commit1f9dfa294fe6ea6c3db7a0676fb895667e4c231c
tree19b7ac09eb591212f637495b20e1821abcae7976
parentbe97fa4c799263ab0ac4ad5dc07cbca4b828a8b7
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
https://golang.org/cl/1994041
25 files changed:
lib/godoc/source.html
src/cmd/cgo/ast.go
src/cmd/cgo/gcc.go
src/cmd/cgo/out.go
src/cmd/godoc/godoc.go
src/cmd/godoc/index.go
src/cmd/godoc/snippet.go
src/cmd/gofmt/gofmt.go
src/cmd/gofmt/rewrite.go
src/cmd/goinstall/parse.go
src/pkg/exp/eval/expr.go
src/pkg/exp/eval/stmt.go
src/pkg/exp/eval/type.go
src/pkg/exp/eval/typec.go
src/pkg/exp/eval/world.go
src/pkg/go/ast/ast.go
src/pkg/go/ast/filter.go
src/pkg/go/ast/scope.go
src/pkg/go/doc/doc.go
src/pkg/go/parser/interface.go
src/pkg/go/parser/parser.go
src/pkg/go/parser/parser_test.go
src/pkg/go/printer/nodes.go
src/pkg/go/printer/printer.go
src/pkg/go/printer/printer_test.go