Companion

object Companion

Functions

Link copied to clipboard
fun joinScopes(source: Scope, dest: Scope)

Copies all symbols from source to dest.

Link copied to clipboard
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.