mirror of
https://github.com/golang/go
synced 2024-11-19 02:04:42 -07:00
go.tools/go/ssa: fix breakage caused by removal of types.NewPackage parameter.
TBR=gri R=gri CC=golang-codereviews https://golang.org/cl/66600045
This commit is contained in:
parent
9111cead20
commit
01263f0a00
@ -28,7 +28,7 @@ type opaqueType struct {
|
|||||||
func (t *opaqueType) String() string { return t.name }
|
func (t *opaqueType) String() string { return t.name }
|
||||||
|
|
||||||
// A bogus "reflect" type-checker package. Shared across interpreters.
|
// A bogus "reflect" type-checker package. Shared across interpreters.
|
||||||
var reflectTypesPackage = types.NewPackage("reflect", "reflect", nil)
|
var reflectTypesPackage = types.NewPackage("reflect", "reflect")
|
||||||
|
|
||||||
// rtype is the concrete type the interpreter uses to implement the
|
// rtype is the concrete type the interpreter uses to implement the
|
||||||
// reflect.Type interface. Since its type is opaque to the target
|
// reflect.Type interface. Since its type is opaque to the target
|
||||||
|
@ -32,7 +32,7 @@ func (prog *Program) CreateTestMainPackage(pkgs ...*Package) *Package {
|
|||||||
Prog: prog,
|
Prog: prog,
|
||||||
Members: make(map[string]Member),
|
Members: make(map[string]Member),
|
||||||
values: make(map[types.Object]Value),
|
values: make(map[types.Object]Value),
|
||||||
Object: types.NewPackage("testmain", "testmain", nil),
|
Object: types.NewPackage("testmain", "testmain"),
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build package's init function.
|
// Build package's init function.
|
||||||
|
Loading…
Reference in New Issue
Block a user