(self, method, parameter)
Add GWT-specific annotations to parameter declaration.

    Qualify our enum class names by method so they do not clash.

    Args:
      method: (Method) The method this parameter belongs to.
      parameter: (Parameter) The parameter to annotate.
Add GWT-specific annotations to parameter declaration.
Add GWT - specific annotations to parameter declaration .
def AnnotateParameter(self, method, parameter):
    """Add GWT-specific annotations to parameter declaration.

    Qualify our enum class names by method so they do not clash.

    Args:
      method: (Method) The method this parameter belongs to.
      parameter: (Parameter) The parameter to annotate.
    """
    super(GwtGenerator, self).AnnotateParameter(method, parameter)
    enum_type = parameter.values.get('enumType')
    if enum_type:
      # For generated enums, we need to qualify the parent class of the enum so
      # that two methods that take a similarly-named enum parameter don't get
      # confused.
      # TODO(user): This will fail when enums can be $refs. Get rid of all
      # special purpuse enum annotations and checks.
      name = '%s.%s' % (method.values['className'],
                        enum_type.values['className'])
      enum_type.SetTemplateValue('codeType', name)
def AnnotateParameter ( self , method , parameter ) : super ( GwtGenerator , self ) . AnnotateParameter ( method , parameter ) enum_type = parameter . values . get ( 'enumType' ) if enum_type : # For generated enums, we need to qualify the parent class of the enum so # that two methods that take a similarly-named enum parameter don't get # confused. # TODO(user): This will fail when enums can be $refs. Get rid of all # special purpuse enum annotations and checks. name = '%s.%s' % ( method . values [ 'className' ] , enum_type . values [ 'className' ] ) enum_type . SetTemplateValue ( 'codeType' , name )