tools/json_schema_compiler/js_interface_generator.py
def _AppendFunction(self, c, function):
    """Appends the inteface for a function, including a JSDoc comment.
    """
    if function.deprecated:
      return

    def getParamNames(f):
      names = []
      for param in f.params:
        names.append(param.name)
      # TODO(https://crbug.com/1142991) Update this to represent promises
      # better, rather than just appended as a callback param.
      if f.returns_async:
        names.append(f.returns_async.name)
      return names

    self._js_util.AppendFunctionJsDoc(c, self._namespace.name, function)

    c.Append('%s: function(%s) {},' % (function.name, ', '.join(
        getParamNames(function))))
    c.Append()
Appends the inteface for a function, including a JSDoc comment.
    
Appends the inteface for a function, including a JSDoc comment.
Appends the inteface for a function including a JSDoc comment .
def _AppendFunction(self, c, function):
    if function.deprecated:
      return
    def getParamNames(f):
      names = []
      for param in f.params:
        names.append(param.name)
      if f.returns_async:
        names.append(f.returns_async.name)
      return names
    self._js_util.AppendFunctionJsDoc(c, self._namespace.name, function)
    c.Append('%s: function(%s) {},' % (function.name, ', '.join(
        getParamNames(function))))
    c.Append()
def _AppendFunction ( self , c , function ) : if function . deprecated : return def getParamNames ( f ) : names = [ ] for param in f . params : names . append ( param . name ) if f . returns_async : names . append ( f . returns_async . name ) return names self . _js_util . AppendFunctionJsDoc ( c , self . _namespace . name , function ) c . Append ( '%s: function(%s) {},' % ( function . name , ', ' . join ( getParamNames ( function ) ) ) ) c . Append ( )
Appends the inteface for a function, including a JSDoc comment.
Appends the inteface for a function including a JSDoc comment .
"""Appends the inteface for a function, including a JSDoc comment.
    """ # TODO(https://crbug.com/1142991) Update this to represent promises # better, rather than just appended as a callback param.
self
c
function