]> Cypherpunks repositories - gostls13.git/commit
go/types: Moving from *ast.Objects to types.Objects (step 2).
authorRobert Griesemer <gri@golang.org>
Sun, 13 Jan 2013 18:33:08 +0000 (10:33 -0800)
committerRobert Griesemer <gri@golang.org>
Sun, 13 Jan 2013 18:33:08 +0000 (10:33 -0800)
commit94878070af6f7efe1aa002089b800fe9393f9923
tree79a578dee26c19bf376b37696c4a001a350a8811
parent1a9a63961b03e386af000ed83fde5fca325c6bd1
go/types: Moving from *ast.Objects to types.Objects (step 2).

Completely removed *ast.Objects from being exposed by the
types API. *ast.Objects are still required internally for
resolution, but now the door is open for an internal-only
rewrite of identifier resolution entirely at type-check
time. Once that is done, ASTs can be type-checked whether
they have been created via the go/parser or otherwise,
and type-checking does not require *ast.Object or scope
invariants to be maintained externally.

R=adonovan
CC=golang-dev
https://golang.org/cl/7096048
19 files changed:
src/pkg/exp/gotype/gotype.go
src/pkg/go/types/api.go
src/pkg/go/types/builtins.go
src/pkg/go/types/check.go
src/pkg/go/types/check_test.go
src/pkg/go/types/errors.go
src/pkg/go/types/expr.go
src/pkg/go/types/gcimporter.go
src/pkg/go/types/objects.go
src/pkg/go/types/operand.go
src/pkg/go/types/predicates.go
src/pkg/go/types/resolve.go
src/pkg/go/types/resolver_test.go
src/pkg/go/types/scope.go [new file with mode: 0644]
src/pkg/go/types/stmt.go
src/pkg/go/types/testdata/decls2a.src
src/pkg/go/types/types.go
src/pkg/go/types/types_test.go
src/pkg/go/types/universe.go