Rhino.Ast.Symbol.SetContainingTable C# (CSharp) Method

SetContainingTable() public method

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

Usage Example

Beispiel #1
0
		/// <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);
		}