splitScope

fun splitScope(scope: Scope): Scope

Creates a new scope node, moving the symbol table from scope into it and making scope a nested scope contained by the new node. Useful for injecting a scope into a scope chain.