parameters: (type_context, annotation_xforms=None)
return_statement: return leading, trailing
docstring: Format the leading/trailing comments in a given TypeContext.
  
      Args:
          type_context: contextual information for message/enum/field.
          annotation_xforms: a dict of transformers for annotations in leading
             comment.
  
      Returns:
          Tuple of formatted leading and trailing comment blocks.
docstring_summary: Format the leading/trailing comments in a given TypeContext.
docstring_tokens: Format the leading / trailing comments in a given TypeContext .
function: def format_type_context_comments(type_context, annotation_xforms=None):
      """Format the leading/trailing comments in a given TypeContext.
  
      Args:
          type_context: contextual information for message/enum/field.
          annotation_xforms: a dict of transformers for annotations in leading
             comment.
  
      Returns:
          Tuple of formatted leading and trailing comment blocks.
      """
      leading_comment = type_context.leading_comment
      if annotation_xforms:
          leading_comment = leading_comment.get_comment_with_transforms(annotation_xforms)
      leading = format_comments(list(type_context.leading_detached_comments) + [leading_comment.raw])
      trailing = format_block(format_comments([type_context.trailing_comment]))
      return leading, trailing
function_tokens: def format_type_context_comments ( type_context , annotation_xforms = None ) : leading_comment = type_context . leading_comment if annotation_xforms : leading_comment = leading_comment . get_comment_with_transforms ( annotation_xforms ) leading = format_comments ( list ( type_context . leading_detached_comments ) + [ leading_comment . raw ] ) trailing = format_block ( format_comments ( [ type_context . trailing_comment ] ) ) return leading , trailing