Lines Matching refs:cases
115 def __init__(self, header, cases): argument
117 self.cases = cases
122 if len(self.cases) < 1: return
124 if self.cases[0].value is None:
125 self.cases[0].value = EnumValueConstant("0")
127 for i in range(1,len(self.cases)):
129 if self.cases[i].value is None:
131 self.cases[i].value = EnumValueSuccessor(
132 EnumValueLocalRef(self.cases[i-1].name))
136 '\n'.join(str(x) for x in self.cases))
246 for case in enum.cases: