#NEWLINE# def inheritedTypes( self ) : #NEWLINE# #INDENT# types = [ str ( self . identifier ) ] #NEWLINE# if ( self . basedOn != None ) : #NEWLINE# #INDENT# parent = self . basedOn . inheritedTypes ( ) #NEWLINE# types . extend ( parent ) #NEWLINE# #UNINDENT# return types