@@ -755,7 +755,7 @@ class ClassEmitter(coreSpec: CoreSpec) {
755
755
val postSuperStatsFunctionName = genFunctionName.postSuperStats(clazz.className)
756
756
val ctor = clazz.jsConstructorDef.get
757
757
758
- WasmExpressionBuilder .emitJSConstructorFunctions(
758
+ FunctionEmitter .emitJSConstructorFunctions(
759
759
preSuperStatsFunctionName,
760
760
superArgsFunctionName,
761
761
postSuperStatsFunctionName,
@@ -822,7 +822,7 @@ class ClassEmitter(coreSpec: CoreSpec) {
822
822
case _ =>
823
823
// For everything else, put the tree in its own function and call it
824
824
val closureFuncName = genInnerFuncName()
825
- WasmExpressionBuilder .emitFunction(
825
+ FunctionEmitter .emitFunction(
826
826
closureFuncName,
827
827
enclosingClassName = None ,
828
828
Some (jsClassCaptures),
@@ -903,7 +903,7 @@ class ClassEmitter(coreSpec: CoreSpec) {
903
903
genLoadIsolatedTree(nameTree)
904
904
905
905
val closureFuncName = genInnerFuncName()
906
- WasmExpressionBuilder .emitFunction(
906
+ FunctionEmitter .emitFunction(
907
907
closureFuncName,
908
908
Some (clazz.className),
909
909
Some (jsClassCaptures),
@@ -930,7 +930,7 @@ class ClassEmitter(coreSpec: CoreSpec) {
930
930
931
931
case Some (getterBody) =>
932
932
val closureFuncName = genInnerFuncName()
933
- WasmExpressionBuilder .emitFunction(
933
+ FunctionEmitter .emitFunction(
934
934
closureFuncName,
935
935
Some (clazz.className),
936
936
Some (jsClassCaptures),
@@ -949,7 +949,7 @@ class ClassEmitter(coreSpec: CoreSpec) {
949
949
950
950
case Some ((setterParamDef, setterBody)) =>
951
951
val closureFuncName = genInnerFuncName()
952
- WasmExpressionBuilder .emitFunction(
952
+ FunctionEmitter .emitFunction(
953
953
closureFuncName,
954
954
Some (clazz.className),
955
955
Some (jsClassCaptures),
@@ -1092,7 +1092,7 @@ class ClassEmitter(coreSpec: CoreSpec) {
1092
1092
val exportedName = exportDef.topLevelExportName
1093
1093
val functionName = genFunctionName.forExport(exportedName)
1094
1094
1095
- WasmExpressionBuilder .emitFunction(
1095
+ FunctionEmitter .emitFunction(
1096
1096
functionName,
1097
1097
enclosingClassName = None ,
1098
1098
captureParamDefs = None ,
@@ -1174,7 +1174,7 @@ class ClassEmitter(coreSpec: CoreSpec) {
1174
1174
val body = method.body.getOrElse(throw new Exception (" abstract method cannot be transformed" ))
1175
1175
1176
1176
// Emit the function
1177
- WasmExpressionBuilder .emitFunction(
1177
+ FunctionEmitter .emitFunction(
1178
1178
functionName,
1179
1179
Some (className),
1180
1180
captureParamDefs = None ,
0 commit comments