parameters: (self, event)
return_statement: return c
docstring: Generates the namespaces for an event.
docstring_summary: Generates the namespaces for an event.
docstring_tokens: Generates the namespaces for an event .
function: 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._GenerateCreateCallbackArguments(event))
        .Eblock('}  // namespace %s' % event_namespace)
      )
      return c
function_tokens: def _GenerateEvent ( self , 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 . _GenerateCreateCallbackArguments ( event ) ) . Eblock ( '}  // namespace %s' % event_namespace ) ) return c