Esempio n. 1
0
        public override void visit(type_definition_attr node)
        {

        }
Esempio n. 2
0
		public void ReplaceInList(type_definition_attr el, type_definition_attr newel)
		{
			attributes[FindIndexInList(el)] = newel;
		}
Esempio n. 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);
		}
Esempio n. 4
0
		public type_definition_attr_list(type_definition_attr _type_definition_attr, SourceContext sc)
		{
		    Add(_type_definition_attr,sc);
		}
Esempio n. 5
0
		public bool Remove(type_definition_attr el)
		{
			return attributes.Remove(el);
		}
 public override void visit(type_definition_attr _type_definition_attr)
 {
     throw new Exception("The method or operation is not implemented.");
 }
		public void visit(type_definition_attr _type_definition_attr)
		{
			bw.Write((Int16)169);
			write_type_definition_attr(_type_definition_attr);
		}
Esempio n. 8
0
		public void AddFirst(type_definition_attr el)
		{
			attributes.Insert(0, el);
		}
Esempio n. 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;
		}
Esempio n. 10
0
		// Конструкторы списка
		public type_definition_attr_list(type_definition_attr elem, SourceContext sc = null)
		{
			Add(elem, sc);
		}
Esempio n. 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;
		}
Esempio n. 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)
     {
         
     }
 }
Esempio n. 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;
		}
Esempio n. 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);
		}
Esempio n. 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();
		}
Esempio n. 18
0
		public void InsertBefore(type_definition_attr el, type_definition_attr newel)
		{
			attributes.Insert(FindIndex(el), newel);
		}
Esempio n. 19
0
 public override void visit(type_definition_attr _type_definition_attr)
 {
     throw new NotImplementedException();
 }
Esempio n. 20
0
		public void InsertBefore(type_definition_attr el, IEnumerable<type_definition_attr> newels)
		{
			attributes.InsertRange(FindIndex(el), newels);
		}
		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);
		}
Esempio n. 22
0
 public override void visit(type_definition_attr node)
 {
     if (node.attr !=  definition_attribute.None)
         text = node.attr.ToString();
 }