summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuergen Bocklage-Ryannel <juergen.bocklage-ryannel@pelagicore.com>2017-03-28 18:56:12 +0200
committerJuergen Bocklage-Ryannel <juergen.bocklage-ryannel@pelagicore.com>2017-03-28 18:56:12 +0200
commitb516b89fe671b80d397ccc5c86a7e18b40388674 (patch)
treeee0977fe5b74257ecfe8b2679545bbdf0e6439b9
parent197be91e87573d7e945d2a2a16414cb3b7d9e3e2 (diff)
downloadqtivi-qface-b516b89fe671b80d397ccc5c86a7e18b40388674.tar.gz
Fixed error where wrong symbol was parsed for signal annotation
-rw-r--r--qface/idl/listener.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/qface/idl/listener.py b/qface/idl/listener.py
index 61c668e..3cec109 100644
--- a/qface/idl/listener.py
+++ b/qface/idl/listener.py
@@ -63,6 +63,7 @@ class DomainListener(TListener):
log.warn('Unknown type: {0}. Missing import?'.format(type.name))
def parse_annotations(self, ctx, symbol):
+ assert ctx and symbol
if ctx.comment:
comment = ctx.comment.text
symbol.comment = comment
@@ -153,7 +154,7 @@ class DomainListener(TListener):
assert self.interface
name = ctx.name.text
self.signal = Signal(name, self.interface)
- self.parse_annotations(ctx, self.operation)
+ self.parse_annotations(ctx, self.signal)
contextMap[ctx] = self.signal
def exitSignalSymbol(self, ctx: TParser.SignalSymbolContext):