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:
parent
50bd0e3288
commit
df0c50c614
|
@ -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),
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue