popActiveVisitor static method

void popActiveVisitor(
  1. InterpreterVisitor? previous
)

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;
}