compiler: refactor func lowering to the transform package

This commit makes a number of changes:

  * It avoids a dependency on Compiler.emitStartGoroutine.
  * It moves the func-lowering pass to the transform package.
  * It adds testing to func lowering.

No functionality should have changed with this commit.
This commit is contained in:
Ayke van Laethem
2019-11-27 00:23:03 +01:00
committed by Ron Evans
parent 024a0827ea
commit 374349cfa5
8 changed files with 346 additions and 114 deletions
+10
View File
@@ -0,0 +1,10 @@
package transform
import (
"testing"
)
func TestFuncLowering(t *testing.T) {
t.Parallel()
testTransform(t, "testdata/func-lowering", LowerFuncValues)
}