python changes for latebound schema manipulation from python

This commit is contained in:
Thomas Krijnen
2020-09-08 14:40:27 +02:00
parent 95a29dec7b
commit d506ad77b7
4 changed files with 268 additions and 117 deletions
@@ -83,7 +83,9 @@ def format_clause(exp):
class TypeDeclaration(Node):
name = property(lambda self: self.type_id[0])
type = property(lambda self: self.underlying_type.any().any())
utype = property(lambda self: self.underlying_type.any().any())
type = property(lambda self: self.utype[0] if isinstance(self.utype, list) else self.utype)
def init(self):
assert hasattr(self, "TYPE")