popActiveVisitor static method
Restores the active visitor saved by pushActiveVisitor. Always call this
from a finally so the active visitor unwinds correctly on every exit
path (including exceptions).
Implementation
static void popActiveVisitor(InterpreterVisitor? previous) {
_activeVisitor = previous;
}