
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.
10 строки
157 Б
Go
10 строки
157 Б
Go
package transform
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestFuncLowering(t *testing.T) {
|
|
t.Parallel()
|
|
testTransform(t, "testdata/func-lowering", LowerFuncValues)
|
|
}
|