replaceWith

fun replaceWith(newScope: Scope)

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