Documentation Language: Swift

Method

popScope()

Pops the current variable scope from the stack.

@MainActor func popScope()

Discussion

All variables in the current scope are discarded, and the previous scope’s bindings are restored. If there are no scopes to pop (only the global scope remains), this is a no-op.