zetasql/resolved_ast/gen_resolved_ast.py
def _JavaDoc(text, indent=0):
  """Returns text for a JavaDoc comment from the given text.

  Args:
    text: comment text
    indent: indent level

  It will be indented by the specified number of spaces.
  """
  if not text:
    return text
  indent_text = ' ' * indent
  content = _CleanComment(text, '%s * ' % indent_text)

  # Prefix <p> to lines that start a new paragraph. The regex finds lines that
  # follow an empty line.
  add_paragraph_re = re.compile(r'\* \n( *\* )(\S)')
  content = add_paragraph_re.sub(r'* \n\1<p> \2', content)

  # Add the leading line (/**) and trailing line (*/)
  return '%s/**\n%s\n%s */' % (indent_text, content, indent_text)
Returns text for a JavaDoc comment from the given text.

  Args:
    text: comment text
    indent: indent level

  It will be indented by the specified number of spaces.
  
Returns text for a JavaDoc comment from the given text.
Returns text for a JavaDoc comment from the given text .
def _JavaDoc(text, indent=0):
  if not text:
    return text
  indent_text = ' ' * indent
  content = _CleanComment(text, '%s * ' % indent_text)
  add_paragraph_re = re.compile(r'\* \n( *\* )(\S)')
  content = add_paragraph_re.sub(r'* \n\1<p> \2', content)
  return '%s/**\n%s\n%s */' % (indent_text, content, indent_text)
def _JavaDoc ( text , indent = 0 ) : if not text : return text indent_text = ' ' * indent content = _CleanComment ( text , '%s * ' % indent_text ) add_paragraph_re = re . compile ( r'\* \n( *\* )(\S)' ) content = add_paragraph_re . sub ( r'* \n\1<p> \2' , content ) return '%s/**\n%s\n%s */' % ( indent_text , content , indent_text )
Returns text for a JavaDoc comment from the given text.
Returns text for a JavaDoc comment from the given text .
"""Returns text for a JavaDoc comment from the given text.

  Args:
    text: comment text
    indent: indent level

  It will be indented by the specified number of spaces.
  """ # Prefix <p> to lines that start a new paragraph. The regex finds lines that # follow an empty line. # Add the leading line (/**) and trailing line (*/)
text
None
indent
None