parameters: (di, block)
return_statement: return "\n\n".join(output)
docstring: Create class and function docstrings of a gnuradio block for a
      swig interface file.
docstring_summary: Create class and function docstrings of a gnuradio block for a
      swig interface file.
docstring_tokens: Create class and function docstrings of a gnuradio block for a swig interface file .
function: def make_block_entry(di, block):
      """
      Create class and function docstrings of a gnuradio block for a
      swig interface file.
      """
      descriptions = []
      # Get the documentation associated with the class.
      class_desc = combine_descriptions(block)
      if class_desc:
          descriptions.append(class_desc)
      # Get the documentation associated with the make function
      make_func = di.get_member(make_name(block.name()), DoxyFunction)
      make_func_desc = combine_descriptions(make_func)
      if make_func_desc:
          descriptions.append(make_func_desc)
      # Get the documentation associated with the file
      try:
          block_file = di.get_member(block.name() + ".h", DoxyFile)
          file_desc = combine_descriptions(block_file)
          if file_desc:
              descriptions.append(file_desc)
      except base.Base.NoSuchMember:
          # Don't worry if we can't find a matching file.
          pass
      # And join them all together to make a super duper description.
      super_description = "\n\n".join(descriptions)
      # Associate the combined description with the class and
      # the make function.
      output = []
      output.append(make_class_entry(block, description=super_description))
      output.append(make_func_entry(make_func, description=super_description,
                                    params=block.params))
      return "\n\n".join(output)
function_tokens: def make_block_entry ( di , block ) : descriptions = [ ] # Get the documentation associated with the class. class_desc = combine_descriptions ( block ) if class_desc : descriptions . append ( class_desc ) # Get the documentation associated with the make function make_func = di . get_member ( make_name ( block . name ( ) ) , DoxyFunction ) make_func_desc = combine_descriptions ( make_func ) if make_func_desc : descriptions . append ( make_func_desc ) # Get the documentation associated with the file try : block_file = di . get_member ( block . name ( ) + ".h" , DoxyFile ) file_desc = combine_descriptions ( block_file ) if file_desc : descriptions . append ( file_desc ) except base . Base . NoSuchMember : # Don't worry if we can't find a matching file. pass # And join them all together to make a super duper description. super_description = "\n\n" . join ( descriptions ) # Associate the combined description with the class and # the make function. output = [ ] output . append ( make_class_entry ( block , description = super_description ) ) output . append ( make_func_entry ( make_func , description = super_description , params = block . params ) ) return "\n\n" . join ( output )