(self, the_api, method, unused_resource)
Add Dart-specific annotations and naming schemes.
Add Dart-specific annotations and naming schemes.
Add Dart - specific annotations and naming schemes .
def AnnotateMethod(self, the_api, method, unused_resource):
    """Add Dart-specific annotations and naming schemes."""
    parent_list = method.ancestors[1:]
    parent_list.append(method)
    parent_classes = [p.values.get('className') for p in parent_list]
    method.SetTemplateValue('contextCodeType', '.'.join(parent_classes))
    super(DartGenerator, self).AnnotateMethod(the_api, method, None)
def AnnotateMethod ( self , the_api , method , unused_resource ) : parent_list = method . ancestors [ 1 : ] parent_list . append ( method ) parent_classes = [ p . values . get ( 'className' ) for p in parent_list ] method . SetTemplateValue ( 'contextCodeType' , '.' . join ( parent_classes ) ) super ( DartGenerator , self ) . AnnotateMethod ( the_api , method , None )