parameters: (self, annotation_lines)
docstring: Adds a (current namespace, pxd annotation) tuple to self.annotations.
docstring_summary: Adds a (current namespace, pxd annotation) tuple to self.annotations.
docstring_tokens: Adds a ( current namespace pxd annotation ) tuple to self . annotations .
function: def add_annotation(self, annotation_lines):
          """
          Adds a (current namespace, pxd annotation) tuple to self.annotations.
          """
          if "{" in self.stack:
              raise self.parser_error("PXD annotation is brace-enclosed")
          if not self.stack:
              namespace = None
          else:
              namespace = "::".join(self.stack)
  
          self.annotations.append((namespace, annotation_lines))
function_tokens: def add_annotation ( self , annotation_lines ) : if "{" in self . stack : raise self . parser_error ( "PXD annotation is brace-enclosed" ) if not self . stack : namespace = None else : namespace = "::" . join ( self . stack ) self . annotations . append ( ( namespace , annotation_lines ) )