parameters: (self)
return_statement: return result
docstring: Return a dict with all metadata entries for this attribute
docstring_summary: Return a dict with all metadata entries for this attribute
docstring_tokens: Return a dict with all metadata entries for this attribute
function: def metadata(self):
          """ Return a dict with all metadata entries for this attribute
          """
  
          node = self.node
          result = {
              "is_global" : self.is_global() ,
              "is_value"  : self.is_value()  ,
              "is_nested" : self.is_nested() ,
              "type"      : self.attribute_type()
          }
  
          while node is not None:
              result[node.attribute().name()] = node.data
              node = node.parent
  
          return result
function_tokens: def metadata ( self ) : node = self . node result = { "is_global" : self . is_global ( ) , "is_value" : self . is_value ( ) , "is_nested" : self . is_nested ( ) , "type" : self . attribute_type ( ) } while node is not None : result [ node . attribute ( ) . name ( ) ] = node . data node = node . parent return result