Ejemplo n.º 1
0
        public override void visit(documentation_comment_tag_param _documentation_comment_tag_param)
        {

        }
		public void read_documentation_comment_tag_param(documentation_comment_tag_param _documentation_comment_tag_param)
		{
			read_syntax_tree_node(_documentation_comment_tag_param);
			if (br.ReadByte() == 0)
			{
				_documentation_comment_tag_param.name = null;
			}
			else
			{
				_documentation_comment_tag_param.name = br.ReadString();
			}
			if (br.ReadByte() == 0)
			{
				_documentation_comment_tag_param.value = null;
			}
			else
			{
				_documentation_comment_tag_param.value = br.ReadString();
			}
		}
Ejemplo n.º 3
0
 public override void visit(documentation_comment_tag_param node)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 4
0
		public void ReplaceInList(documentation_comment_tag_param el, IEnumerable<documentation_comment_tag_param> newels)
		{
			var ind = FindIndexInList(el);
			parameters.RemoveAt(ind);
			parameters.InsertRange(ind, newels);
		}
		public void visit(documentation_comment_tag_param _documentation_comment_tag_param)
		{
			read_documentation_comment_tag_param(_documentation_comment_tag_param);
		}
Ejemplo n.º 6
0
 public void visit(documentation_comment_tag_param _documentation_comment_tag_param)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 7
0
		public void ReplaceInList(documentation_comment_tag_param el, documentation_comment_tag_param newel)
		{
			parameters[FindIndexInList(el)] = newel;
		}
Ejemplo n.º 8
0
		public void InsertBefore(documentation_comment_tag_param el, documentation_comment_tag_param newel)
		{
			parameters.Insert(FindIndex(el), newel);
		}
Ejemplo n.º 9
0
		public void InsertBefore(documentation_comment_tag_param el, IEnumerable<documentation_comment_tag_param> newels)
		{
			parameters.InsertRange(FindIndex(el), newels);
		}
Ejemplo n.º 10
0
		private int FindIndexInList(documentation_comment_tag_param el)
		{
			var ind = parameters.FindIndex(x => x == el);
			if (ind == -1)
				throw new Exception(string.Format("У списка {0} не найден элемент {1} среди дочерних\n", this, el));
			return ind;
		}
Ejemplo n.º 11
0
		public void InsertAfter(documentation_comment_tag_param el, documentation_comment_tag_param newel)
		{
			parameters.Insert(FindIndex(el) + 1, newel);
		}
Ejemplo n.º 12
0
		public void AddFirst(documentation_comment_tag_param el)
		{
			parameters.Insert(0, el);
		}
Ejemplo n.º 13
0
		// Методы списка
		public documentation_comment_tag Add(documentation_comment_tag_param elem, SourceContext sc = null)
		{
			parameters.Add(elem);
			if (sc != null)
				source_context = sc;
			return this;
		}
Ejemplo n.º 14
0
		// Конструкторы списка
		public documentation_comment_tag(documentation_comment_tag_param elem, SourceContext sc = null)
		{
			Add(elem, sc);
		}
Ejemplo n.º 15
0
		public void visit(documentation_comment_tag_param _documentation_comment_tag_param)
		{
			bw.Write((Int16)175);
			write_documentation_comment_tag_param(_documentation_comment_tag_param);
		}
Ejemplo n.º 16
0
		public bool Remove(documentation_comment_tag_param el)
		{
			return parameters.Remove(el);
		}
Ejemplo n.º 17
0
		public void write_documentation_comment_tag_param(documentation_comment_tag_param _documentation_comment_tag_param)
		{
			write_syntax_tree_node(_documentation_comment_tag_param);
			if (_documentation_comment_tag_param.name == null)
			{
				bw.Write((byte)0);
			}
			else
			{
				bw.Write((byte)1);
				bw.Write(_documentation_comment_tag_param.name);
			}
			if (_documentation_comment_tag_param.value == null)
			{
				bw.Write((byte)0);
			}
			else
			{
				bw.Write((byte)1);
				bw.Write(_documentation_comment_tag_param.value);
			}
		}
Ejemplo n.º 18
0
 public override void visit(documentation_comment_tag_param node)
 {
     text = string.Format("name={0} value={1}", node.name, node.value);
 }