#NEWLINE# def __combinePackage( node ) : #NEWLINE# #INDENT# '\n    Combines a package variable (e.g. foo.bar.baz) into one string\n    ' #NEWLINE# result = [ node . value ] #NEWLINE# parent = node . parent #NEWLINE# while ( parent . type == 'dot' ) : #NEWLINE# #INDENT# result . append ( parent [ 1 ] . value ) #NEWLINE# parent = parent . parent #NEWLINE# #UNINDENT# return '.' . join ( result )