Used by the parser. Repoints this scope's child scopes at newScope and copies this scope's symbols into it.