def _initialize_genumtagdecls(self):
     if len(self.genumtagdecls) > 0:
         return
     for e in self.xnode.find("global-enumtag-declarations").findall(
             "genumtag"):
         name = e.find("enuminfo").get("ename")
         self.genumtagdecls[name] = CGEnumTag(self, e)
示例#2
0
 def _initialize_genumtagdefs(self, xnode):
     for t in xnode.findall("genumtag"):
         enuminfo = self.get_enuminfo(int(t.get("ieinfo")))
         location = self.get_location(int(t.get("iloc")))
         self.genumtagdefs[enuminfo.ename] = CGEnumTag(enuminfo, location)
示例#3
0
 def _initialize_genumtagdecls(self,xnode):
     for t in xnode.findall('genumtagdecl'):
         enuminfo = self.get_enuminfo(int(t.get('ieinfo')))
         location = self.get_location(int(t.get('iloc')))
         self.genumtagdecls[enuminfo.ename] = CGEnumTag(enuminfo,location)
示例#4
0
 def _initialize_genumtagdecls(self):
     if len(self.genumtagdecls) > 0: return
     for e in self.xnode.find('global-enumtag-declarations').findall(
             'genumtag'):
         name = e.find('enuminfo').get('ename')
         self.genumtagdecls[name] = CGEnumTag(self, e)