]> Cypherpunks repositories - gostls13.git/commit
go/ast resolver: properly maintain map of package global imports
authorRobert Griesemer <gri@golang.org>
Tue, 17 May 2011 18:22:52 +0000 (11:22 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 17 May 2011 18:22:52 +0000 (11:22 -0700)
commit8f57f493981704fa1118c1f916edc787d4c2bccd
treefbf33344591ec83c262149800e9f2f3e795407dc
parent1242c76794936f7bdd4406aa8914500eefe655d4
go/ast resolver: properly maintain map of package global imports

- add Data field to ast.Object
- for package objects, the Data field holds the package scope
- resolve several TODOs

R=rsc
CC=golang-dev
https://golang.org/cl/4538069
src/pkg/go/ast/ast.go
src/pkg/go/ast/resolve.go
src/pkg/go/ast/scope.go
src/pkg/go/parser/parser.go
src/pkg/go/types/gcimporter.go
src/pkg/go/types/gcimporter_test.go
src/pkg/go/types/universe.go