Example #1
0
        public override int GenerateCode(int loc, IVirtualMachine vm, CheckerInformation info)
        {
            loc = Expr.GenerateLValue(loc, vm, info);
            switch (Expr.GetExpressionType(info))
            {
            case Type.INT32:
                vm.IntInput(loc++, "DEBUGIN");
                break;

            case Type.BOOL:
                vm.BoolInput(loc++, "DEBUGIN");
                break;

            case Type.DECIMAL:
                vm.DecimalInput(loc++, "DEBUGIN");
                break;
            }
            return(loc);
        }