#NEWLINE# def __iter__( self ) : #NEWLINE# #INDENT# 'Only iterate over all components from the current pointer.' #NEWLINE# element = self #NEWLINE# while element . HasField ( 'pathtype' ) : #NEWLINE# #INDENT# ( yield element ) #NEWLINE# if element . HasField ( 'nested_path' ) : #NEWLINE# #INDENT# element = element . nested_path #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# break