1
0
mirror of https://github.com/golang/go synced 2024-10-02 10:28:34 -06:00
go/ssa/interp
Alan Donovan fb0642f5fb go.tools/ssa: fix a package-level var initialization order bug.
buildDecl was visiting all decls in source order, but the spec
calls for visiting all vars and init() funcs in order, then
all remaining functions.  These two passes are now called
buildInit(), buildFuncDecl().

+ Test.

Also:
- Added workaround to gcimporter for Func with pkg==nil.
- Prog.concreteMethods has been merged into Pkg.values.
- Prog.concreteMethod() renamed declaredFunc().
- s/mfunc/obj/ (name cleanup from recent gri CL)

R=gri
CC=golang-dev
https://golang.org/cl/12030044
2013-07-29 14:24:09 -04:00
..
testdata go.tools/ssa: fix a package-level var initialization order bug. 2013-07-29 14:24:09 -04:00
external_plan9.go go.tools: add go/types, ssa, and cmd/vet 2013-05-17 13:20:39 -07:00
external_unix.go go.tools: add go/types, ssa, and cmd/vet 2013-05-17 13:20:39 -07:00
external_windows.go go.tools: add go/types, ssa, and cmd/vet 2013-05-17 13:20:39 -07:00
external.go go.tools/ssa: several small clean-ups. 2013-07-16 12:23:55 -04:00
interp_test.go go.tools/ssa: fix a package-level var initialization order bug. 2013-07-29 14:24:09 -04:00
interp.go go.tools/ssa: tests of method promotion and of interface conversion + bugfixes. 2013-07-26 21:49:27 -04:00
map.go go.tools: add go/types, ssa, and cmd/vet 2013-05-17 13:20:39 -07:00
ops.go go.tools/ssa: tests of method promotion and of interface conversion + bugfixes. 2013-07-26 21:49:27 -04:00
reflect.go go.tools/go/types: simplified and faster Scope 2013-07-23 21:21:37 -07:00
value.go go.tools/ssa: Value.Pos() method + remaining source position plumbing. 2013-05-30 09:59:17 -04:00