public void write_switch_stmt(switch_stmt _switch_stmt)
		{
			write_statement(_switch_stmt);
			if (_switch_stmt.condition == null)
			{
				bw.Write((byte)0);
			}
			else
			{
				bw.Write((byte)1);
				_switch_stmt.condition.visit(this);
			}
			if (_switch_stmt.stmt == null)
			{
				bw.Write((byte)0);
			}
			else
			{
				bw.Write((byte)1);
				_switch_stmt.stmt.visit(this);
			}
			bw.Write((byte)_switch_stmt.Part);
		}
 public override void visit(switch_stmt _switch_stmt)
 {
     throw new NotImplementedException();
 }
		public void visit(switch_stmt _switch_stmt)
		{
			bw.Write((Int16)167);
			write_switch_stmt(_switch_stmt);
		}
 public override void visit(switch_stmt _switch_stmt)
 {
     throw new Exception("The method or operation is not implemented.");
 }
		public void read_switch_stmt(switch_stmt _switch_stmt)
		{
			read_statement(_switch_stmt);
			_switch_stmt.condition = _read_node() as expression;
			_switch_stmt.stmt = _read_node() as statement;
			_switch_stmt.Part = (SwitchPartType)br.ReadByte();
		}
		public void visit(switch_stmt _switch_stmt)
		{
			read_switch_stmt(_switch_stmt);
		}
Exemple #7
0
 public override void visit(switch_stmt node)
 {
     prepare_node(node.condition, "condition");
     prepare_node(node.stmt, "stmt");
 }
 public override void visit(switch_stmt node)
 {
     text = node.Part.ToString();
 }