toothpick-runtime / toothpick / Toothpick / openScopes

openScopes

open static fun openScopes(vararg names: Any): Scope

Opens multiple scopes in a row. Opened scopes will be children of each other in left to right order (e.g. openScopes(a,b) opens scopes a and b and b is a child of a.

Parameters

names - of the scopes to open hierarchically.

Return
the last opened scope, leaf node of the created subtree of scopes.