parameters: (buff)
return_statement: return rtags
docstring: Create a DocStruct object that represents Ada source code
      @param buff: a file like buffer object (StringIO)
docstring_summary: Create a DocStruct object that represents Ada source code
      @param buff: a file like buffer object (StringIO)
docstring_tokens: Create a DocStruct object that represents Ada source code @param buff : a file like buffer object ( StringIO )
function: def GenerateTags(buff):
      """Create a DocStruct object that represents Ada source code
      @param buff: a file like buffer object (StringIO)
  
      """
      rtags = taglib.DocStruct()
      rtags.SetElementDescription('procedure', "Procedure Definitions")
  
      for lnum, line in enumerate(buff):
          line = line.strip()
  
          # Skip comment and empty lines
          if line.startswith(u"--") or not line:
              continue
  
          # Check Regular Function Defs
          if parselib.IsToken(line, 0, u'procedure'):
              name = parselib.GetFirstIdentifier(line[9:].strip())
              if name is not None:
                  rtags.AddElement('procedure',
                                   taglib.Function(name, lnum, 'procedure'))
  
      return rtags
function_tokens: def GenerateTags ( buff ) : rtags = taglib . DocStruct ( ) rtags . SetElementDescription ( 'procedure' , "Procedure Definitions" ) for lnum , line in enumerate ( buff ) : line = line . strip ( ) # Skip comment and empty lines if line . startswith ( u"--" ) or not line : continue # Check Regular Function Defs if parselib . IsToken ( line , 0 , u'procedure' ) : name = parselib . GetFirstIdentifier ( line [ 9 : ] . strip ( ) ) if name is not None : rtags . AddElement ( 'procedure' , taglib . Function ( name , lnum , 'procedure' ) ) return rtags