(args, return_val=False)
return '\n'.join(lines) + '\n'
Generate JSDoc for a function.

  Args:
    args: A list of names of the argument.
    return_val: Whether the function has a return value.

  Returns:
    The JSDoc as a string.
Generate JSDoc for a function.
Generate JSDoc for a function .
def _GenerateJsDoc(args, return_val=False):
  """Generate JSDoc for a function.

  Args:
    args: A list of names of the argument.
    return_val: Whether the function has a return value.

  Returns:
    The JSDoc as a string.
  """

  lines = []
  lines.append('/**')

  lines += [' * @param {} %s' % arg for arg in args]

  if return_val:
    lines.append(' * @return')

  lines.append(' */')

  return '\n'.join(lines) + '\n'
def _GenerateJsDoc ( args , return_val = False ) : lines = [ ] lines . append ( '/**' ) lines += [ ' * @param {} %s' % arg for arg in args ] if return_val : lines . append ( ' * @return' ) lines . append ( ' */' ) return '\n' . join ( lines ) + '\n'