public virtual void ReplaceWith(Rhino.Ast.Scope newScope)
{
if (childScopes != null)
{
foreach (Rhino.Ast.Scope kid in childScopes)
{
newScope.AddChildScope(kid);
}
// sets kid's parent
childScopes.Clear();
childScopes = null;
}
if (symbolTable != null && !symbolTable.IsEmpty())
{
JoinScopes(this, newScope);
}
}