Ejemplo n.º 1
0
        public static string ToPrettyString(this FOpCode type)
        {
            if (type == FOpCode.PushCst)
            {
                return("push.cst");
            }
            if (type == FOpCode.PushGlb)
            {
                return("push.glb");
            }
            if (type == FOpCode.PushI16)
            {
                return("push.i16");
            }
            if (type == FOpCode.PushVar)
            {
                return("push.var");
            }

            return(type.ToString().ToLowerInvariant());
        }
Ejemplo n.º 2
0
        public static string ToPrettyString(this FOpCode type)
        {
            switch (type)
            {
            case FOpCode.PushCst:
                return("push.cst");

            case FOpCode.PushLoc:
                return("push.loc");

            case FOpCode.PushGlb:
                return("push.glb");

            case FOpCode.PushI16:
                return("push.i16");

            case FOpCode.PushVar:
                return("push.var");
            }

            return(type.ToString().ToLowerInvariant());
        }