Rhino.Ast.Symbol.SetContainingTable C# (CSharp) 메소드

SetContainingTable() 공개 메소드

Sets this symbol's Scope
public SetContainingTable ( Scope containingTable ) : void
containingTable Scope
리턴 void
		public virtual void SetContainingTable(Scope containingTable)
		{
			this.containingTable = containingTable;
		}

Usage Example

예제 #1
0
파일: Scope.cs 프로젝트: hazzik/Rhino.Net
		/// <summary>Enters a symbol into this scope.</summary>
		/// <remarks>Enters a symbol into this scope.</remarks>
		public virtual void PutSymbol(Symbol symbol)
		{
			if (symbol.GetName() == null)
			{
				throw new ArgumentException("null symbol name");
			}
			EnsureSymbolTable();
			symbolTable.Put(symbol.GetName(), symbol);
			symbol.SetContainingTable(this);
			top.AddSymbol(symbol);
		}