#NEWLINE# def buildNodeList( provider , nodes , source_ref , allow_none = False ) : #NEWLINE# #INDENT# if ( nodes is not None ) : #NEWLINE# #INDENT# result = [ ] #NEWLINE# for node in nodes : #NEWLINE# #INDENT# if hasattr ( node , 'lineno' ) : #NEWLINE# #INDENT# node_source_ref = source_ref . atLineNumber ( node . lineno ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# node_source_ref = source_ref #NEWLINE# #UNINDENT# entry = buildNode ( provider , node , node_source_ref , result ) #NEWLINE# if ( entry is not None ) : #NEWLINE# #INDENT# result . append ( entry ) #NEWLINE# #UNINDENT# #UNINDENT# return result #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return [ ]