コード例 #1
0
ファイル: visualizator.cs プロジェクト: Slav76/pascalabcnet
 public override void visit(documentation_comment_tag node)
 {
     prepare_collection(node.parameters, "parameters");
 }
コード例 #2
0
ファイル: Tree.cs プロジェクト: Slav76/pascalabcnet
		public void ReplaceInList(documentation_comment_tag el, documentation_comment_tag newel)
		{
			tags[FindIndexInList(el)] = newel;
		}
コード例 #3
0
ファイル: Tree.cs プロジェクト: Slav76/pascalabcnet
		public void ReplaceInList(documentation_comment_tag el, IEnumerable<documentation_comment_tag> newels)
		{
			var ind = FindIndexInList(el);
			tags.RemoveAt(ind);
			tags.InsertRange(ind, newels);
		}
コード例 #4
0
 public void visit(documentation_comment_tag _documentation_comment_tag)
 {
     throw new NotImplementedException();
 }
コード例 #5
0
ファイル: Tree.cs プロジェクト: Slav76/pascalabcnet
		public bool Remove(documentation_comment_tag el)
		{
			return tags.Remove(el);
		}
コード例 #6
0
 public override void visit(documentation_comment_tag node)
 {
     throw new NotImplementedException();
 }
コード例 #7
0
		public void visit(documentation_comment_tag _documentation_comment_tag)
		{
			bw.Write((Int16)174);
			write_documentation_comment_tag(_documentation_comment_tag);
		}
コード例 #8
0
ファイル: Tree.cs プロジェクト: Slav76/pascalabcnet
		public void AddFirst(documentation_comment_tag el)
		{
			tags.Insert(0, el);
		}
コード例 #9
0
ファイル: Tree.cs プロジェクト: Slav76/pascalabcnet
		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;
		}
コード例 #10
0
ファイル: Tree.cs プロジェクト: Slav76/pascalabcnet
		// Конструкторы списка
		public documentation_comment_section(documentation_comment_tag elem, SourceContext sc = null)
		{
			Add(elem, sc);
		}
コード例 #11
0
ファイル: Tree.cs プロジェクト: Slav76/pascalabcnet
		// Методы списка
		public documentation_comment_section Add(documentation_comment_tag elem, SourceContext sc = null)
		{
			tags.Add(elem);
			if (sc != null)
				source_context = sc;
			return this;
		}
コード例 #12
0
ファイル: Tree.cs プロジェクト: lisiynos/pascalabcnet
		public documentation_comment_section Add(documentation_comment_tag _documentation_comment_tag, SourceContext sc)
		{
		    tags.Add(_documentation_comment_tag);
		    source_context = sc;
		    return this;
		}
コード例 #13
0
ファイル: Tree.cs プロジェクト: lisiynos/pascalabcnet
		public documentation_comment_section Add(documentation_comment_tag _documentation_comment_tag)
		{
		    tags.Add(_documentation_comment_tag);
		    return this;
		}
コード例 #14
0
ファイル: Tree.cs プロジェクト: lisiynos/pascalabcnet
		public documentation_comment_section(documentation_comment_tag _documentation_comment_tag, SourceContext sc)
		{
		    Add(_documentation_comment_tag,sc);
		}
コード例 #15
0
		public void visit(documentation_comment_tag _documentation_comment_tag)
		{
			read_documentation_comment_tag(_documentation_comment_tag);
		}
コード例 #16
0
ファイル: Tree.cs プロジェクト: Slav76/pascalabcnet
		public void InsertAfter(documentation_comment_tag el, documentation_comment_tag newel)
		{
			tags.Insert(FindIndex(el) + 1, newel);
		}
コード例 #17
0
		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();
			}
		}
コード例 #18
0
ファイル: Tree.cs プロジェクト: Slav76/pascalabcnet
		public void InsertBefore(documentation_comment_tag el, documentation_comment_tag newel)
		{
			tags.Insert(FindIndex(el), newel);
		}
コード例 #19
0
        public override void visit(documentation_comment_tag _documentation_comment_tag)
        {

        }
コード例 #20
0
ファイル: Tree.cs プロジェクト: Slav76/pascalabcnet
		public void InsertBefore(documentation_comment_tag el, IEnumerable<documentation_comment_tag> newels)
		{
			tags.InsertRange(FindIndex(el), newels);
		}
コード例 #21
0
		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);
			}
		}
コード例 #22
0
 public override void visit(documentation_comment_tag node)
 {
     text = string.Format("name={0} text={1}", node.name, node.text);
 }