Objects of type Field get a reference to their parent.
This is needed in the generator to differentiate
field handling dependend on properties of their parent.
Message-ID: <
1409743080-302-1-git-send-email-chris@demorecorder.com>
Patch-Thread-Subject: [Xcb] xinput: make ListInputDevices work, sumof with nested expr, ...
Patch-Set: ListInputDevices
Patch-Number: proto 1/7
Patch-Version: V1
Signed-off-by: Christian Linhart <chris@DemoRecorder.com>
self.wire = wire
self.auto = auto
self.isfd = isfd
+ self.parent = None
class Expression(object):
return
complex_type.fields.append(new_field)
+ new_field.parent = complex_type
def make_fd_of(self, module, complex_type, fd_name):
'''