tools/json_schema_compiler/js_util.py
def AppendTypeJsDoc(self, c, namespace_name, js_type, optional):
    """Appends the documentation for a type as a Code.
    """
    c.Append('@type {')
    if optional:
      c.Append('(', new_line=False)
      c.Concat(self._TypeToJsType(namespace_name, js_type), new_line=False)
      c.Append('|undefined)', new_line=False)
    else:
      c.Concat(self._TypeToJsType(namespace_name, js_type), new_line=False)
    c.Append('}', new_line=False)
Appends the documentation for a type as a Code.
    
Appends the documentation for a type as a Code.
Appends the documentation for a type as a Code .
def AppendTypeJsDoc(self, c, namespace_name, js_type, optional):
    c.Append('@type {')
    if optional:
      c.Append('(', new_line=False)
      c.Concat(self._TypeToJsType(namespace_name, js_type), new_line=False)
      c.Append('|undefined)', new_line=False)
    else:
      c.Concat(self._TypeToJsType(namespace_name, js_type), new_line=False)
    c.Append('}', new_line=False)
def AppendTypeJsDoc ( self , c , namespace_name , js_type , optional ) : c . Append ( '@type {' ) if optional : c . Append ( '(' , new_line = False ) c . Concat ( self . _TypeToJsType ( namespace_name , js_type ) , new_line = False ) c . Append ( '|undefined)' , new_line = False ) else : c . Concat ( self . _TypeToJsType ( namespace_name , js_type ) , new_line = False ) c . Append ( '}' , new_line = False )
Appends the documentation for a type as a Code.
Appends the documentation for a type as a Code .
"""Appends the documentation for a type as a Code.
    """
self
c
namespace_name
js_type
optional