Пример #1
0
		public void write_addressed_value_list(addressed_value_list _addressed_value_list)
		{
			write_syntax_tree_node(_addressed_value_list);
			if (_addressed_value_list.variables == null)
			{
				bw.Write((byte)0);
			}
			else
			{
				bw.Write((byte)1);
				bw.Write(_addressed_value_list.variables.Count);
				for(Int32 ssyy_i = 0; ssyy_i < _addressed_value_list.variables.Count; ssyy_i++)
				{
					if (_addressed_value_list.variables[ssyy_i] == null)
					{
						bw.Write((byte)0);
					}
					else
					{
						bw.Write((byte)1);
						_addressed_value_list.variables[ssyy_i].visit(this);
					}
				}
			}
		}
Пример #2
0
		///<summary>
		///Конструктор с параметрами.
		///</summary>
		public assign_tuple(addressed_value_list _vars,expression _expr,SourceContext sc)
		{
			this._vars=_vars;
			this._expr=_expr;
			source_context = sc;
		}
Пример #3
0
		public void visit(addressed_value_list _addressed_value_list)
		{
			bw.Write((Int16)206);
			write_addressed_value_list(_addressed_value_list);
		}
Пример #4
0
		///<summary>
		///Конструктор с параметрами.
		///</summary>
		public assign_tuple(addressed_value_list _vars,expression _expr)
		{
			this._vars=_vars;
			this._expr=_expr;
		}
 public override void visit(addressed_value_list al)
 {
     sb.Append("(");
     var i = 0;
     foreach (var av in al.variables)
     {
         visit_node(av);
         add_space_after = true;
         i++;
     }
     //sb.Append(")");
 }
		public void read_addressed_value_list(addressed_value_list _addressed_value_list)
		{
			read_syntax_tree_node(_addressed_value_list);
			if (br.ReadByte() == 0)
			{
				_addressed_value_list.variables = null;
			}
			else
			{
				_addressed_value_list.variables = new List<addressed_value>();
				Int32 ssyy_count = br.ReadInt32();
				for(Int32 ssyy_i = 0; ssyy_i < ssyy_count; ssyy_i++)
				{
					_addressed_value_list.variables.Add(_read_node() as addressed_value);
				}
			}
		}
		public void visit(addressed_value_list _addressed_value_list)
		{
			read_addressed_value_list(_addressed_value_list);
		}
Пример #8
0
 public override void visit(addressed_value_list _addressed_value_list)
 {
     foreach (addressed_value av in _addressed_value_list.variables)
         av.visit(this);
 }