diff options
Diffstat (limited to 'codegen/definitions.py')
-rw-r--r-- | codegen/definitions.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/codegen/definitions.py b/codegen/definitions.py index 5da488b..6249d78 100644 --- a/codegen/definitions.py +++ b/codegen/definitions.py @@ -49,6 +49,10 @@ class Property(object): self.optional = optional self.argname = argname + def __len__(self): return 4 + def __getitem__(self, i): + return ('', self.pname, self.optional, self.argname)[i] + def merge(self, old): if old.optional is not None: self.optional = old.optional |