2016-12-14 | Paul Boddie | raw files shortlog changelog graph | Encode uninitialised members as None references. | |
generator.py (file) |
1.1 --- a/generator.py Wed Dec 14 00:03:08 2016 +0100 1.2 +++ b/generator.py Wed Dec 14 16:23:32 2016 +0100 1.3 @@ -957,7 +957,8 @@ 1.4 # General undetermined members. 1.5 1.6 if kind in ("<var>", "<instance>"): 1.7 - return "{0, 0} /* %s */" % name 1.8 + attr_path = encode_predefined_reference(self.none_value) 1.9 + return "{&%s, &%s} /* %s */" % (attr_path, attr_path, name) 1.10 1.11 # Set the context depending on the kind of attribute. 1.12 # For methods: {&<parent>, &<attr>}