Documentation Language: Swift

Method

pushScope()

Pushes a new variable scope onto the stack.

@MainActor func pushScope()

Discussion

The current variable bindings are saved, and a new empty scope is created. Variables set after this call will be local to the new scope until popScope() is called.