Lines Matching refs:cases
124 def __init__(self, header, cases): argument
126 self.cases = cases
131 if len(self.cases) < 1: return
133 if self.cases[0].value is None:
134 self.cases[0].value = EnumValueConstant("0")
136 for i in range(1,len(self.cases)):
138 if self.cases[i].value is None:
140 self.cases[i].value = EnumValueSuccessor(
141 EnumValueLocalRef(self.cases[i-1].name))
145 '\n'.join(str(x) for x in self.cases))
267 for case in enum.cases: