#NEWLINE# def hasText( node ) : #NEWLINE# #INDENT# if ( node . type == 'call' ) : #NEWLINE# #INDENT# funcName = None #NEWLINE# if ( node [ 0 ] . type == 'identifier' ) : #NEWLINE# #INDENT# funcName = node [ 0 ] . value #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( node [ 0 ] . type == 'dot' ) and ( node [ 0 ] [ 1 ] . type == 'identifier' ) ) : #NEWLINE# #INDENT# funcName = node [ 0 ] [ 1 ] . value #NEWLINE# #UNINDENT# #UNINDENT# if ( funcName in translationFunctions ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# #UNINDENT# for child in node : #NEWLINE# #INDENT# if ( funcName != None ) : #NEWLINE# #INDENT# ret = hasText ( child ) #NEWLINE# if ret : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return False