Esempio n. 1
0
    internal void GenCode(ILGenerator g, Function f, Type coerceto)
    {
        var gen = t.GenCode(g, f, this, coerceto);

        if (Program._debug && gen != typeof(void))
        {
            g.Emit(OpCodes.Dup);
            g.Emit(OpCodes.Call, typeof(Runtime).GetMethod("__dbg", new Type[] { gen }));
        }

        NodeType.Coerce(gen, coerceto, g);
    }