tools/json_schema_compiler/h_generator.py
def _GenerateEvent(self, event):
    """Generates the namespaces for an event.
    """
    c = Code()
    # TODO(kalman): use event.unix_name not Classname.
    event_namespace = cpp_util.Classname(event.name)
    (c.Append('namespace %s {' % event_namespace)
      .Append()
      .Concat(self._GenerateEventNameConstant(event))
      .Concat(self._GenerateAsyncResponseArguments(event.params))
      .Append('}  // namespace %s' % event_namespace)
    )
    return c
Generates the namespaces for an event.
    
Generates the namespaces for an event.
Generates the namespaces for an event .
def _GenerateEvent(self, event):
    c = Code()
    event_namespace = cpp_util.Classname(event.name)
    (c.Append('namespace %s {' % event_namespace)
      .Append()
      .Concat(self._GenerateEventNameConstant(event))
      .Concat(self._GenerateAsyncResponseArguments(event.params))
      .Append('}  // namespace %s' % event_namespace)
    )
    return c
def _GenerateEvent ( self , event ) : c = Code ( ) event_namespace = cpp_util . Classname ( event . name ) ( c . Append ( 'namespace %s {' % event_namespace ) . Append ( ) . Concat ( self . _GenerateEventNameConstant ( event ) ) . Concat ( self . _GenerateAsyncResponseArguments ( event . params ) ) . Append ( '}  // namespace %s' % event_namespace ) ) return c
Generates the namespaces for an event.
Generates the namespaces for an event .
"""Generates the namespaces for an event.
    """ # TODO(kalman): use event.unix_name not Classname.
self
event