text: from .declaration import Declaration
  from .identifier import Identifier
  
  
  class NonLocalDecl(Declaration):
  
      def __init__(self, location: [int], variable: Identifier):
          super().__init__(location, "NonLocalDecl")
          self.variable = variable
  
      def visit(self, visitor):
          return visitor.NonLocalDecl(self)
  
      def toJSON(self, dump_location=True):
          d = super().toJSON(dump_location)
          d["variable"] = self.variable.toJSON(dump_location)
          return d
  
      def getIdentifier(self):
          return self.variable
  