go.tools/importer: retain scope information.

(It's needed by the oracle.)

R=crawshaw, gri
CC=golang-dev
https://golang.org/cl/13071043
This commit is contained in:
Alan Donovan 2013-08-19 15:14:13 -04:00
parent 50bd0e3288
commit df0c50c614
1 changed files with 1 additions and 0 deletions

View File

@ -175,6 +175,7 @@ func (imp *Importer) CreateSourcePackage(importPath string, files []*ast.File) *
Values: make(map[ast.Expr]exact.Value),
Objects: make(map[*ast.Ident]types.Object),
Implicits: make(map[ast.Node]types.Object),
Scopes: make(map[ast.Node]*types.Scope),
Selections: make(map[*ast.SelectorExpr]*types.Selection),
},
}