fix SelectionType creation for export (if the type is only exported but not used in module)

svn path=/trunk/; revision=21973
This commit is contained in:
Tomas Kukosa 2007-05-28 11:10:41 +00:00
parent 28b739896d
commit 77a163a6e3
1 changed files with 4 additions and 0 deletions

View File

@ -3560,9 +3560,13 @@ class ChoiceType (Type):
#print "eth_reg_sub(ident='%s')" % (ident)
for e in (self.elt_list):
e.eth_reg(ident, ectx, tstrip=1, parent=ident)
if ectx.conform.check_item('EXPORTS', ident + '.' + e.name):
ectx.eth_sel_req(ident, e.name)
if hasattr(self, 'ext_list'):
for e in (self.ext_list):
e.eth_reg(ident, ectx, tstrip=1, parent=ident)
if ectx.conform.check_item('EXPORTS', ident + '.' + e.name):
ectx.eth_sel_req(ident, e.name)
def sel_item(self, ident, sel, ectx):
lst = self.elt_list