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