if len(items) > 0:
for item in items[:-1]:
self.visit(item)
- if output_rhs and item.rhs is not None:
+ if output_rhs and item.default is not None:
self.put(u" = ")
- self.visit(item.rhs)
+ self.visit(item.default)
self.put(u", ")
self.visit(items[-1])
return func_type
def exception_checks(self):
- func_type = self.function.type
+ func_type = self.function_type()
exc_val = func_type.exception_value
exc_check = func_type.exception_check
if exc_val is None and self.function.entry.visibility != 'extern':
child_attrs = ['default']
+ default = None
+
def analyse(self, base_type, env, nonempty = 0):
if nonempty and self.name == '':
# Must have mistaken the name for the type.