public override void visit(type_definition_attr node) { }
public void ReplaceInList(type_definition_attr el, type_definition_attr newel) { attributes[FindIndexInList(el)] = newel; }
public void ReplaceInList(type_definition_attr el, IEnumerable<type_definition_attr> newels) { var ind = FindIndexInList(el); attributes.RemoveAt(ind); attributes.InsertRange(ind, newels); }
public type_definition_attr_list(type_definition_attr _type_definition_attr, SourceContext sc) { Add(_type_definition_attr,sc); }
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); }
public void AddFirst(type_definition_attr el) { attributes.Insert(0, el); }
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; }
// Конструкторы списка public type_definition_attr_list(type_definition_attr elem, SourceContext sc = null) { Add(elem, sc); }
// Методы списка public type_definition_attr_list Add(type_definition_attr elem, SourceContext sc = null) { attributes.Add(elem); if (sc != null) source_context = sc; return this; }
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) { } }
public type_definition_attr_list Add(type_definition_attr _type_definition_attr, SourceContext sc) { attributes.Add(_type_definition_attr); source_context = sc; return this; }
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); }
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(); }
public void InsertBefore(type_definition_attr el, type_definition_attr newel) { attributes.Insert(FindIndex(el), newel); }
public override void visit(type_definition_attr _type_definition_attr) { throw new NotImplementedException(); }
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); }
public override void visit(type_definition_attr node) { if (node.attr != definition_attribute.None) text = node.attr.ToString(); }