示例#1
0
        public Statement DecompileCase()
        {
            PopByte();
            var offs = ReadUInt16(); // MemOff
            Statement statement = null;

            if (offs == (UInt16)0xFFFF)
            {
                statement = new DefaultStatement(null, null);
            }
            else
            {
                var expr = DecompileExpression();
                if (expr == null)
                    return null; //ERROR ?

                statement = new CaseStatement(expr, null, null);
            }

            StatementLocations.Add(StartPositions.Pop(), statement);
            return statement;
        }
示例#2
0
 public bool VisitNode(DefaultStatement node)
 {
     throw new NotImplementedException();
 }
示例#3
0
 public bool VisitNode(DefaultStatement node)
 {
     // default:
     NestingLevel--; // de-indent this line only
     Write("default:");
     NestingLevel++;
     return true;
 }