def METHOD_NAME(self, frame: Frame) -> None:
    """Remember all undeclared identifiers."""
    super().METHOD_NAME(frame)
    for _, (action, param) in frame.symbols.loads.items():
        if action == "resolve" and param not in self.environment.globals:
            self.undeclared_identifiers.add(param)