109a110
> self.functions = {}
146c147
< def dataMemberAdd(self, ident, type, pairs, init_code):
---
> def addDataMember(self, ident, type, pairs, init_code):
167c168
< def methodAdd(self, name, return_type, param_type_vec):
---
> def addMethod(self, name, return_type, param_type_vec):
175c176,187
< def enumAdd(self, ident, pairs):
---
> # Ideally either this function or the one above should exist. But
> # methods and functions have different structures right now.
> # Hence, these are different, at least for the time being.
> def addFunc(self, func):
> ident = self.methodId(func.ident, func.param_types)
> if ident in self.functions:
> return False
>
> self.functions[ident] = func
> return True
>
> def addEnum(self, ident, pairs):
370a383,388
> # Prototypes for functions defined for the Type
> for item in self.functions:
> proto = self.functions[item].prototype
> if proto:
> code('$proto')
>
425a444,447
> # print the code for the functions in the type
> for item in self.functions:
> code(self.functions[item].generateCode())
>