#NEWLINE# def getVisitableNodes( self ) : #NEWLINE# #INDENT# result = [ ] #NEWLINE# for name in self . named_children : #NEWLINE# #INDENT# value = self . child_values [ name ] #NEWLINE# if ( value is None ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( type ( value ) is tuple ) : #NEWLINE# #INDENT# result += list ( value ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( value , NodeBase ) : #NEWLINE# #INDENT# result . append ( value ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise AssertionError ( self , 'has illegal child' , name , name , value . __class__ ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return tuple ( result )