ip_xact/h_addr_generator.py
def create_field_enum_decls(self, field):
		"""
		Create declaration objects for enumerated values of IP-XACT field object.
		"""
		enum_decls = []
		
		if (len(field.enumeratedValues[0].enumeratedValue) > 0):
			for es in field.enumeratedValues:
				for (i,e) in enumerate(sorted(es.enumeratedValue, key=lambda x: x.value)):
					enum_decl = LanDeclaration((e.name).upper(), e.value)
					enum_decl.intType = "enum"
					enum_decls.append(enum_decl)

		return enum_decls

		Create declaration objects for enumerated values of IP-XACT field object.
		
Create declaration objects for enumerated values of IP-XACT field object.
Create declaration objects for enumerated values of IP - XACT field object .
def create_field_enum_decls(self, field):
		enum_decls = []
		if (len(field.enumeratedValues[0].enumeratedValue) > 0):
			for es in field.enumeratedValues:
				for (i,e) in enumerate(sorted(es.enumeratedValue, key=lambda x: x.value)):
					enum_decl = LanDeclaration((e.name).upper(), e.value)
					enum_decl.intType = "enum"
					enum_decls.append(enum_decl)
		return enum_decls
def create_field_enum_decls ( self , field ) : enum_decls = [ ] if ( len ( field . enumeratedValues [ 0 ] . enumeratedValue ) > 0 ) : for es in field . enumeratedValues : for ( i , e ) in enumerate ( sorted ( es . enumeratedValue , key = lambda x : x . value ) ) : enum_decl = LanDeclaration ( ( e . name ) . upper ( ) , e . value ) enum_decl . intType = "enum" enum_decls . append ( enum_decl ) return enum_decls
Create declaration objects for enumerated values of IP-XACT field object.
Create declaration objects for enumerated values of IP - XACT field object .
"""
		Create declaration objects for enumerated values of IP-XACT field object.
		"""
self
field