#NEWLINE# def visit_MethodDeclaration( self , method_decl ) : #NEWLINE# #INDENT# if self . first_method : #NEWLINE# #INDENT# print #NEWLINE# print ( 'methods:' ) #NEWLINE# self . first_method = False #NEWLINE# #UNINDENT# param_strings = [ ] #NEWLINE# for param in method_decl . parameters : #NEWLINE# #INDENT# if ( type ( param . type ) is str ) : #NEWLINE# #INDENT# param_strings . append ( ( ( param . type + ' ' ) + param . variable . name ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# param_strings . append ( ( ( param . type . name . value + ' ' ) + param . variable . name ) ) #NEWLINE# #UNINDENT# #UNINDENT# print ( ( ( ( ( '    ' + method_decl . name ) + '(' ) + ', ' . join ( param_strings ) ) + ')' ) ) #NEWLINE# return True