コード例 #1
0
		public UsingCollection (Scope container)
		{
			m_container = container;
			m_items = new ArrayList ();
		}
コード例 #2
0
		public void Remove (Scope value)
		{
			m_items.Remove (value);
		}
コード例 #3
0
		public virtual void VisitScope (Scope scope)
		{
		}
コード例 #4
0
		public int IndexOf (Scope value)
		{
			return m_items.IndexOf (value);
		}
コード例 #5
0
		public void Insert (int index, Scope value)
		{
			m_items.Insert (index, value);
		}
コード例 #6
0
		public bool Contains (Scope value)
		{
			return m_items.Contains (value);
		}
コード例 #7
0
		public void Add (Scope value)
		{
			m_items.Add (value);
		}
コード例 #8
0
		public ConstantCollection (Scope container)
		{
			m_container = container;
			m_items = new ArrayList ();
		}
コード例 #9
0
		void ReadScopes ()
		{
			for (int i = 0, len = m_scopes.Length; i < len; i++) {
				Scope s = new Scope ();
				int parent = Int ();
				s.StartOffset = Int ();
				s.EndOffset = Int ();
				Pop2 ();

				if (parent != -1) {
					s.Parent = m_scopes [parent];
					s.Parent.Scopes.Add (s);
				}

				m_scopes [i] = s;
			}
		}
コード例 #10
0
		public VariableCollection (Scope container)
		{
			m_container = container;
			m_items = new ArrayList ();
		}