def METHOD_NAME(self, frame):
    """Remember all undeclared identifiers."""
    CodeGenerator.METHOD_NAME(self, frame)
    for _, (action, param) in iteritems(frame.symbols.loads):
        if action == "resolve" and param not in self.environment.globals:
            self.undeclared_identifiers.add(param)