public void visit(on_exception_list _on_exception_list)
		{
			bw.Write((Int16)85);
			write_on_exception_list(_on_exception_list);
		}
		public void write_on_exception_list(on_exception_list _on_exception_list)
		{
			write_syntax_tree_node(_on_exception_list);
			if (_on_exception_list.on_exceptions == null)
			{
				bw.Write((byte)0);
			}
			else
			{
				bw.Write((byte)1);
				bw.Write(_on_exception_list.on_exceptions.Count);
				for(Int32 ssyy_i = 0; ssyy_i < _on_exception_list.on_exceptions.Count; ssyy_i++)
				{
					if (_on_exception_list.on_exceptions[ssyy_i] == null)
					{
						bw.Write((byte)0);
					}
					else
					{
						bw.Write((byte)1);
						_on_exception_list.on_exceptions[ssyy_i].visit(this);
					}
				}
			}
		}
		public void read_on_exception_list(on_exception_list _on_exception_list)
		{
			read_syntax_tree_node(_on_exception_list);
			if (br.ReadByte() == 0)
			{
				_on_exception_list.on_exceptions = null;
			}
			else
			{
				_on_exception_list.on_exceptions = new List<on_exception>();
				Int32 ssyy_count = br.ReadInt32();
				for(Int32 ssyy_i = 0; ssyy_i < ssyy_count; ssyy_i++)
				{
					_on_exception_list.on_exceptions.Add(_read_node() as on_exception);
				}
			}
		}
		public void visit(on_exception_list _on_exception_list)
		{
			read_on_exception_list(_on_exception_list);
		}
示例#5
0
		///<summary>
		///Конструктор с параметрами.
		///</summary>
		public try_except_statement(statement_list _statements,on_exception_list _on_except,statement_list _else_statements,SourceContext sc)
		{
			this._statements=_statements;
			this._on_except=_on_except;
			this._else_statements=_else_statements;
			source_context = sc;
		}
示例#6
0
		///<summary>
		///Конструктор с параметрами.
		///</summary>
		public try_except_statement(statement_list _statements,on_exception_list _on_except,statement_list _else_statements)
		{
			this._statements=_statements;
			this._on_except=_on_except;
			this._else_statements=_else_statements;
		}
示例#7
0
 public void visit(on_exception_list _on_exception_list)
 {
     throw new NotImplementedException();
 }