public override void visit(documentation_comment_tag node) { prepare_collection(node.parameters, "parameters"); }
public void ReplaceInList(documentation_comment_tag el, documentation_comment_tag newel) { tags[FindIndexInList(el)] = newel; }
public void ReplaceInList(documentation_comment_tag el, IEnumerable<documentation_comment_tag> newels) { var ind = FindIndexInList(el); tags.RemoveAt(ind); tags.InsertRange(ind, newels); }
public void visit(documentation_comment_tag _documentation_comment_tag) { throw new NotImplementedException(); }
public bool Remove(documentation_comment_tag el) { return tags.Remove(el); }
public override void visit(documentation_comment_tag node) { throw new NotImplementedException(); }
public void visit(documentation_comment_tag _documentation_comment_tag) { bw.Write((Int16)174); write_documentation_comment_tag(_documentation_comment_tag); }
public void AddFirst(documentation_comment_tag el) { tags.Insert(0, el); }
private int FindIndexInList(documentation_comment_tag el) { var ind = tags.FindIndex(x => x == el); if (ind == -1) throw new Exception(string.Format("У списка {0} не найден элемент {1} среди дочерних\n", this, el)); return ind; }
// Конструкторы списка public documentation_comment_section(documentation_comment_tag elem, SourceContext sc = null) { Add(elem, sc); }
// Методы списка public documentation_comment_section Add(documentation_comment_tag elem, SourceContext sc = null) { tags.Add(elem); if (sc != null) source_context = sc; return this; }
public documentation_comment_section Add(documentation_comment_tag _documentation_comment_tag, SourceContext sc) { tags.Add(_documentation_comment_tag); source_context = sc; return this; }
public documentation_comment_section Add(documentation_comment_tag _documentation_comment_tag) { tags.Add(_documentation_comment_tag); return this; }
public documentation_comment_section(documentation_comment_tag _documentation_comment_tag, SourceContext sc) { Add(_documentation_comment_tag,sc); }
public void visit(documentation_comment_tag _documentation_comment_tag) { read_documentation_comment_tag(_documentation_comment_tag); }
public void InsertAfter(documentation_comment_tag el, documentation_comment_tag newel) { tags.Insert(FindIndex(el) + 1, newel); }
public void read_documentation_comment_tag(documentation_comment_tag _documentation_comment_tag) { read_syntax_tree_node(_documentation_comment_tag); if (br.ReadByte() == 0) { _documentation_comment_tag.name = null; } else { _documentation_comment_tag.name = br.ReadString(); } if (br.ReadByte() == 0) { _documentation_comment_tag.parameters = null; } else { _documentation_comment_tag.parameters = new List<documentation_comment_tag_param>(); Int32 ssyy_count = br.ReadInt32(); for(Int32 ssyy_i = 0; ssyy_i < ssyy_count; ssyy_i++) { _documentation_comment_tag.parameters.Add(_read_node() as documentation_comment_tag_param); } } if (br.ReadByte() == 0) { _documentation_comment_tag.text = null; } else { _documentation_comment_tag.text = br.ReadString(); } }
public void InsertBefore(documentation_comment_tag el, documentation_comment_tag newel) { tags.Insert(FindIndex(el), newel); }
public override void visit(documentation_comment_tag _documentation_comment_tag) { }
public void InsertBefore(documentation_comment_tag el, IEnumerable<documentation_comment_tag> newels) { tags.InsertRange(FindIndex(el), newels); }
public void write_documentation_comment_tag(documentation_comment_tag _documentation_comment_tag) { write_syntax_tree_node(_documentation_comment_tag); if (_documentation_comment_tag.name == null) { bw.Write((byte)0); } else { bw.Write((byte)1); bw.Write(_documentation_comment_tag.name); } if (_documentation_comment_tag.parameters == null) { bw.Write((byte)0); } else { bw.Write((byte)1); bw.Write(_documentation_comment_tag.parameters.Count); for(Int32 ssyy_i = 0; ssyy_i < _documentation_comment_tag.parameters.Count; ssyy_i++) { if (_documentation_comment_tag.parameters[ssyy_i] == null) { bw.Write((byte)0); } else { bw.Write((byte)1); _documentation_comment_tag.parameters[ssyy_i].visit(this); } } } if (_documentation_comment_tag.text == null) { bw.Write((byte)0); } else { bw.Write((byte)1); bw.Write(_documentation_comment_tag.text); } }
public override void visit(documentation_comment_tag node) { text = string.Format("name={0} text={1}", node.name, node.text); }