parameters: (self, *args)
docstring: Add/Set comment for the block or parameter.
  
          There are two modes of operation. The first (`setComment(text)`) sets the comment of the
          block itself to the supplied *text*. The second (`setComment(param, text)` sets the comment
          of the supplied *param* with the value of *text*.
docstring_summary: Add/Set comment for the block or parameter.
docstring_tokens: Add / Set comment for the block or parameter .
function: def setComment(self, *args):
          """
          Add/Set comment for the block or parameter.
  
          There are two modes of operation. The first (`setComment(text)`) sets the comment of the
          block itself to the supplied *text*. The second (`setComment(param, text)` sets the comment
          of the supplied *param* with the value of *text*.
          """
          if len(args) == 1:
              param = None
              text = args[0]
          elif len(args) == 2:
              param, text = args
  
          comment = self.__hitparamcomments.get(param, self.__hitblockcomment)
          if (comment is not None) and (text is not None):
              comment.setText('# {}'.format(text))
  
          if (comment is not None) and (text is None):
              if comment is self.__hitblockcomment:
                  self.__hitblockcomment.remove()
                  self.__hitblockcomment = None
              else:
                  comment.remove()
  
          elif (comment is None) and (param is None) and (text is not None):
              self.parent.__hitnode.insertChild(self.__hitoffset, hit.NewComment('# {}'.format(text)))
              self.__reinitComments()
  
          elif (comment is None) and (param is not None) and (text is not None):
              for child in self.__hitnode.children(hit.NodeType.Field):
                  if child.path() == param:
                      child.addChild(hit.NewComment('# {}'.format(text), True))
                      self.__reinitComments()
                      break
function_tokens: def setComment ( self , * args ) : if len ( args ) == 1 : param = None text = args [ 0 ] elif len ( args ) == 2 : param , text = args comment = self . __hitparamcomments . get ( param , self . __hitblockcomment ) if ( comment is not None ) and ( text is not None ) : comment . setText ( '# {}' . format ( text ) ) if ( comment is not None ) and ( text is None ) : if comment is self . __hitblockcomment : self . __hitblockcomment . remove ( ) self . __hitblockcomment = None else : comment . remove ( ) elif ( comment is None ) and ( param is None ) and ( text is not None ) : self . parent . __hitnode . insertChild ( self . __hitoffset , hit . NewComment ( '# {}' . format ( text ) ) ) self . __reinitComments ( ) elif ( comment is None ) and ( param is not None ) and ( text is not None ) : for child in self . __hitnode . children ( hit . NodeType . Field ) : if child . path ( ) == param : child . addChild ( hit . NewComment ( '# {}' . format ( text ) , True ) ) self . __reinitComments ( ) break