Rhino.Ast.Scope.PutSymbol C# (CSharp) Method

PutSymbol() public method

Enters a symbol into this scope.
Enters a symbol into this scope.
public PutSymbol ( Symbol symbol ) : void
symbol Symbol
return void
		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);
		}