diff options
author | Juergen Bocklage-Ryannel <juergen.bocklage-ryannel@pelagicore.com> | 2017-02-11 22:27:01 +0100 |
---|---|---|
committer | Juergen Bocklage-Ryannel <juergen.bocklage-ryannel@pelagicore.com> | 2017-02-11 22:27:01 +0100 |
commit | b47657af5ef6fa87f850fcd48b106be4ecffaced (patch) | |
tree | bdbf3af4d17874731ae209ee1cdd31462e066fed /qface/idl/listener.py | |
parent | 7941521f9d079e50af1c00e44f4a36212ff0dab5 (diff) | |
download | qtivi-qface-b47657af5ef6fa87f850fcd48b106be4ecffaced.tar.gz |
Introduced the NamedElement base class for the domain and removed the TypedSymbol. This makes the architecture simpler and less confusing when the Type was a Symbol.
Additonally introduced the contents property which shall generalize the “children” of a symbol, e.g. parameters of an operation. This shall help to write more reusable template helper functions.
Diffstat (limited to 'qface/idl/listener.py')
-rw-r--r-- | qface/idl/listener.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qface/idl/listener.py b/qface/idl/listener.py index 925e908..826f44f 100644 --- a/qface/idl/listener.py +++ b/qface/idl/listener.py @@ -34,6 +34,7 @@ class DomainListener(TListener): self.field = None # type:Field def parse_type(self, ctx: ParserRuleContext, type: TypeSymbol): + assert type if not ctx.typeSymbol(): type.is_void = True type.name = 'void' |