예제 #1
0
 /// <summary>
 /// Конструктор узла.
 /// </summary>
 /// <param name="comprehensive_namespace">Пространство имен, в которое вложено это пространство имен.</param>
 /// <param name="cont_unit">Модуль, в котором содержится это пространство имен.</param>
 /// <param name="name">Имя пространства имен.</param>
 /// <param name="scope">Область видимости пространства имен.</param>
 /// <param name="loc">Расположения заголовка пространства имен.</param>
 public common_namespace_node(namespace_node comprehensive_namespace, unit_node cont_unit, string name,
                              SymbolTable.Scope scope, location loc)
 {
     _comprehensive_namespace = comprehensive_namespace;
     _cont_unit = cont_unit;
     _name      = name;
     _scope     = scope;
     _loc       = loc;
 }
예제 #2
0
		///<summary>
		///Searches the entire sorted ArrayList for an element using the specified comparer and returns the zero-based index of the element.
		///</summary>
		///<param name="value">The Object to locate. The value can be a null reference.<param>
		///<param name="comparer">The IComparer implementation to use when comparing elements. -or- A null reference (Nothing in Visual Basic) to use the default comparer that is the IComparable implementation of each element.<param>
		///<returns>The zero-based index of value in the sorted unit_nodeArrayList, if value is found; otherwise, a negative number, which is the bitwise complement of the index of the next element that is larger than value or, if there is no larger element, the bitwise complement of Count.</returns>
		public void BinarySearch(unit_node value,System.Collections.IComparer comparer)
		{
			arr.BinarySearch(value,comparer);
		}
예제 #3
0
		///<summary>
		///Uses a binary search algorithm to locate a specific element in the sorted unit_nodeArrayList or a portion of it.
		///</summary>
		///<param name="value">The Object to locate. The value can be a null reference.<param>
		///<returns>The zero-based index of value in the sorted unit_nodeArrayList, if value is found; otherwise, a negative number, which is the bitwise complement of the index of the next element that is larger than value or, if there is no larger element, the bitwise complement of Count.</returns>
		public int BinarySearch(unit_node value)
		{
			return arr.BinarySearch(value);
		}
예제 #4
0
		public void SetRange(int index,unit_node[] tnarr)
		{
			SetRange(index,tnarr);
		}
예제 #5
0
		///<summary>
		///Adds the elements of an unit_node[] to the end of the unit_nodeArrayList
		///</summary>
		///<param name="array">The unit_node[] whose elements should be added to the end of the ArrayList. The unit_node[] itself cannot be a null reference, but it can contain elements that are a null reference.<param>
		///<returns>Return value is void</returns>
		public void AddRange(unit_node[] array)
		{
			arr.AddRange(array);
		}
예제 #6
0
		///<summary>
		///Copies the entire ArrayList to a compatible one-dimensional unit_node[], starting at the specified index of the target array.
		///</summary>
		///<param name="index">The zero-based index in the source ArrayList at which copying begins.<param>
		///<param name="array">The one-dimensional unit_node[] that is the destination of the elements copied from unit_nodeArrayList. The Array must have zero-based indexing.<param>
		///<param name="arrayIndex">The zero-based index in array at which copying begins.<param>
		///<param name="count">The number of elements to copy.<param>
		///<returns>Return value is void</returns>
		public void CopyTo(int index,unit_node[] array,int arrayIndex,int count)
		{
			arr.CopyTo(index,array,arrayIndex,count);
		}
예제 #7
0
		///<summary>
		///Inserts an element into the unit_nodeArrayList at the specified index.
		///</summary>
		///<param name="index">The zero-based index at which value should be inserted.<param>
		///<param name="value">The unit_node to insert. The value can be a null reference.<param>
		///<returns>Return value is void</returns>
		public void Insert(int index,unit_node value)
		{
			arr.Insert(index,value);
		}
		public SymbolInfo(unit_node value)
		{
			//_name_information_type=name_information_type.nit_unit;
			_sym_info=value;
			_access_level=access_level.al_public;
			_symbol_kind=symbol_kind.sk_none;
		}
예제 #9
0
		///<summary>
		///Removes the first occurrence of a specific object from the ArrayList.
		///</summary>
		///<param name="value">The unit_node to remove from the ArrayList. The value can be a null reference.<param>
		///<returns>Return value is void</returns>
		public void Remove(unit_node value)
		{
			arr.Remove(value);
		}
예제 #10
0
		///<summary>
		///Searches for the specified unit_node and returns the zero-based index of the last occurrence within the section of the unit_nodeArrayList that contains the specified number of elements and ends at the specified index.
		///</summary>
		///<param name="value">The unit_node to locate in the unit_nodeArrayList. The value can be a null reference.<param>
		///<param name="startIndex">The zero-based starting index of the backward search.<param>
		///<param name="count">The number of elements in the section to search.<param>
		///<returns>The zero-based index of the last occurrence of value within the section of the unit_nodeArrayList that extends from the first element to startIndex, if found; otherwise, -1.</returns>
		public int LastIndexOf(unit_node value,int startIndex,int count)
		{
			return arr.LastIndexOf(value,startIndex,count);
		}
예제 #11
0
		///<summary>
		///Adds an unit_node to the end of the unit_nodeArrayList.
		///</summary>
		///<param name="value">The unit_node to be added to the end of the ArrayList. The value can be a null reference.<param>
		///<returns>The unit_nodeArrayList index at which the value has been added.</returns>
		public int Add(unit_node value)
		{
			return arr.Add(value);
		}
예제 #12
0
		///<summary>
		///Searches for the specified unit_node and returns the zero-based index of the last occurrence within the section of the unit_nodeArrayList that extends from the first element to the specified index.
		///</summary>
		///<param name="value">The unit_node to locate in the unit_nodeArrayList. The value can be a null reference.<param>
		///<param name="startIndex">The zero-based starting index of the backward search.<param>
		///<returns>The zero-based index of the last occurrence of value within the section of the unit_nodeArrayList that extends from the first element to startIndex, if found; otherwise, -1.</returns>
		public int LastIndexOf(unit_node value,int startIndex)
		{
			return arr.LastIndexOf(value,startIndex);
		}
예제 #13
0
		///<summary>
		///Searches for the specified unit_node and returns the zero-based index of the last occurrence within the entire unit_nodeArrayList.
		///</summary>
		///<param name="value">The unit_node to locate in the unit_nodeArrayList. The value can be a null reference.<param>
		///<returns>The zero-based index of the last occurrence of value within the entire the ArrayList, if found; otherwise, -1.</returns>
		public int LastIndexOf(unit_node value)
		{
			return arr.LastIndexOf(value);
		}
예제 #14
0
		///<summary>
		///Inserts the elements of a unit_node into the unit_nodeArrayList at the specified index.
		///</summary>
		///<param name="index">The zero-based index at which the new elements should be inserted.<param>
		///<param name="arr">The unit_node[] whose elements should be inserted into the unit_nodeArrayList. The unit_node[] itself cannot be a null reference, but it can contain elements that are a null reference.<param>
		///<returns>Return value is void</returns>
		public void InsertRange(int index,unit_node[] unit_node_arr)
		{
			arr.InsertRange(index,arr);
		}
예제 #15
0
		///<summary>
		///Searches the entire sorted ArrayList for an element using the specified comparer and returns the zero-based index of the element.
		///</summary>
		///<param name="index">The zero-based starting index of the range to search.<param>
		///<param name="count">The length of the range to search.<param>
		///<param name="value">The Object to locate. The value can be a null reference.<param>
		///<param name="comparer">The IComparer implementation to use when comparing elements. -or- A null reference (Nothing in Visual Basic) to use the default comparer that is the IComparable implementation of each element.<param>
		///<returns>The zero-based index of value in the sorted unit_nodeArrayList, if value is found; otherwise, a negative number, which is the bitwise complement of the index of the next element that is larger than value or, if there is no larger element, the bitwise complement of Count.</returns>
		public void BinarySearch(int index,int count,unit_node value,System.Collections.IComparer comparer)
		{
			arr.BinarySearch(value,comparer);
		}
예제 #16
0
 /// <summary>
 /// Конструктор узла.
 /// </summary>
 /// <param name="comprehensive_namespace">Пространство имен, в которое вложено это пространство имен.</param>
 /// <param name="cont_unit">Модуль, в котором содержится это пространство имен.</param>
 /// <param name="name">Имя пространства имен.</param>
 /// <param name="scope">Область видимости пространства имен.</param>
 /// <param name="loc">Расположения заголовка пространства имен.</param>
 public common_namespace_node(namespace_node comprehensive_namespace, unit_node cont_unit, string name, 
     SymbolTable.Scope scope, location loc)
 {
     _comprehensive_namespace = comprehensive_namespace;
     _cont_unit = cont_unit;
     _name = name;
     _scope = scope;
     _loc = loc;
 }
예제 #17
0
		///<summary>
		///Copies the entire ArrayList to a compatible one-dimensional unit_node[], starting at the specified index of the target array.
		///</summary>
		///<param name="array">The one-dimensional unit_node[] that is the destination of the elements copied from unit_nodeArrayList. The Array must have zero-based indexing.<param>
		///<param name="arrayIndex">The zero-based index in array at which copying begins.<param>
		///<returns>Return value is void</returns>
		public void CopyTo(unit_node[] array,int arrayIndex)
		{
			arr.CopyTo(array,arrayIndex);
		}
예제 #18
0
		///<summary>
		///Copies the entire unit_nodeArrayList to a compatible one-dimensional unit_node[], starting at the beginning of the target array.
		///</summary>
		///<param name="array">The one-dimensional unit_node[] that is the destination of the elements copied from unit_nodeArrayList. The Array must have zero-based indexing.<param>
		///<returns>Return value is void</returns>
		public void CopyTo(unit_node[] array)
		{
			arr.CopyTo(array);
		}
예제 #19
0
		///<summary>
		///Determines whether an element is in the unit_nodeArrayList.
		///</summary>
		///<param name="item">The unit_node to locate in the ArrayList. The value can be a null reference.<param>
		///<returns>true if item is found in the unit_nodeArrayList; otherwise, false.</returns>
		public bool Contains(unit_node item)
		{
			return arr.Contains(item);
		}