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

AddChildScope() public method

Add a scope to our list of child scopes.
Add a scope to our list of child scopes. Sets the child's parent scope to this scope.
/// if the child's parent scope is /// non- /// null ///
public AddChildScope ( Rhino child ) : void
child Rhino
return void
		public virtual void AddChildScope(Rhino.Ast.Scope child)
		{
			if (childScopes == null)
			{
				childScopes = new List<Rhino.Ast.Scope>();
			}
			childScopes.Add(child);
			child.SetParentScope(this);
		}