Exemplo n.º 1
0
		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);
		}
Exemplo n.º 2
0
 public override void visit(switch_stmt _switch_stmt)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 3
0
		public void visit(switch_stmt _switch_stmt)
		{
			bw.Write((Int16)167);
			write_switch_stmt(_switch_stmt);
		}
Exemplo n.º 4
0
 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);
		}
Exemplo n.º 7
0
 public override void visit(switch_stmt node)
 {
     prepare_node(node.condition, "condition");
     prepare_node(node.stmt, "stmt");
 }
Exemplo n.º 8
0
 public override void visit(switch_stmt node)
 {
     text = node.Part.ToString();
 }