1
0
mirror of https://github.com/golang/go synced 2024-11-19 01:54:39 -07:00
go/importer
Alan Donovan 7aabe2e113 go.tools/ssa: build a separate Function for each init() func.
Before, we would concatenate all the init() blocks together,
resulting in incorrect treatment of a recovered panic in one
init block: the implicit return would cause the subsequent ones
to be skipped.

The result is simpler, and closer to what gc does.

The additional functions are visible in the call graph,
so some tests required updating.

R=gri
CC=crawshaw, golang-dev
https://golang.org/cl/14671044
2013-10-14 14:08:23 -04:00
..
testdata go.tools/importer: add unit test of LoadInitialPackages. 2013-09-10 10:39:51 -04:00
importer_test.go go.tools/importer: add unit test of LoadInitialPackages. 2013-09-10 10:39:51 -04:00
importer.go go.tools/importer: crude fix for race condition. 2013-10-11 15:18:21 -04:00
pkginfo.go go.tools/importer: delete BuiltinCallSignature 2013-10-11 12:26:31 -07:00
source_test.go go.tools/ssa: build a separate Function for each init() func. 2013-10-14 14:08:23 -04:00
source.go go.tools/importer: generalize command-line syntax. 2013-09-06 18:13:57 -04:00
util.go go.tools: clear DeclarationErrors flag; it's redundant w.r.t go/types checking. 2013-10-08 10:34:36 -04:00