private static void CgFuncDefExp(FuncInfo fi, FuncDefExp node, int a) { var subFi = new FuncInfo(fi, node); fi.SubFuncs.Add(subFi); foreach (var param in node.ParList) { subFi.AddLocVar(param); } CgBlock(subFi, node.Block); subFi.ExitScope(); subFi.EmitReturn(0, 0); var bx = fi.SubFuncs.Count - 1; fi.EmitClosure(a, bx); }