Пример #1
0
        public override void visit(type_definition_attr node)
        {

        }
Пример #2
0
		public void ReplaceInList(type_definition_attr el, type_definition_attr newel)
		{
			attributes[FindIndexInList(el)] = newel;
		}
Пример #3
0
		public void ReplaceInList(type_definition_attr el, IEnumerable<type_definition_attr> newels)
		{
			var ind = FindIndexInList(el);
			attributes.RemoveAt(ind);
			attributes.InsertRange(ind, newels);
		}
Пример #4
0
		public type_definition_attr_list(type_definition_attr _type_definition_attr, SourceContext sc)
		{
		    Add(_type_definition_attr,sc);
		}
Пример #5
0
		public bool Remove(type_definition_attr el)
		{
			return attributes.Remove(el);
		}
Пример #6
0
 public override void visit(type_definition_attr _type_definition_attr)
 {
     throw new Exception("The method or operation is not implemented.");
 }
Пример #7
0
		public void visit(type_definition_attr _type_definition_attr)
		{
			bw.Write((Int16)169);
			write_type_definition_attr(_type_definition_attr);
		}
Пример #8
0
		public void AddFirst(type_definition_attr el)
		{
			attributes.Insert(0, el);
		}
Пример #9
0
		private int FindIndexInList(type_definition_attr el)
		{
			var ind = attributes.FindIndex(x => x == el);
			if (ind == -1)
				throw new Exception(string.Format("У списка {0} не найден элемент {1} среди дочерних\n", this, el));
			return ind;
		}
Пример #10
0
		// Конструкторы списка
		public type_definition_attr_list(type_definition_attr elem, SourceContext sc = null)
		{
			Add(elem, sc);
		}
Пример #11
0
		// Методы списка
		public type_definition_attr_list Add(type_definition_attr elem, SourceContext sc = null)
		{
			attributes.Add(elem);
			if (sc != null)
				source_context = sc;
			return this;
		}
Пример #12
0
 public void CompareInternal(type_definition_attr left, type_definition_attr right)
 {
     if (left == null && right != null || left != null && right == null)
         throw_not_equal(left, right);
     if (left != null && right != null)
     {
         
     }
 }
Пример #13
0
		public type_definition_attr_list Add(type_definition_attr _type_definition_attr, SourceContext sc)
		{
		    attributes.Add(_type_definition_attr);
		    source_context = sc;
		    return this;
		}
Пример #14
0
		public type_definition_attr_list Add(type_definition_attr _type_definition_attr)
		{
		    attributes.Add(_type_definition_attr);
		    return this;
		}
		public void visit(type_definition_attr _type_definition_attr)
		{
			read_type_definition_attr(_type_definition_attr);
		}
Пример #16
0
		public void InsertAfter(type_definition_attr el, type_definition_attr newel)
		{
			attributes.Insert(FindIndex(el) + 1, newel);
		}
		public void read_type_definition_attr(type_definition_attr _type_definition_attr)
		{
			read_type_definition(_type_definition_attr);
			_type_definition_attr.attr = (definition_attribute)br.ReadByte();
		}
Пример #18
0
		public void InsertBefore(type_definition_attr el, type_definition_attr newel)
		{
			attributes.Insert(FindIndex(el), newel);
		}
Пример #19
0
 public override void visit(type_definition_attr _type_definition_attr)
 {
     throw new NotImplementedException();
 }
Пример #20
0
		public void InsertBefore(type_definition_attr el, IEnumerable<type_definition_attr> newels)
		{
			attributes.InsertRange(FindIndex(el), newels);
		}
Пример #21
0
		public void write_type_definition_attr(type_definition_attr _type_definition_attr)
		{
			write_type_definition(_type_definition_attr);
			bw.Write((byte)_type_definition_attr.attr);
		}
Пример #22
0
 public override void visit(type_definition_attr node)
 {
     if (node.attr !=  definition_attribute.None)
         text = node.attr.ToString();
 }