summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qface/idl/listener.py2
-rw-r--r--tests/test_parser.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/qface/idl/listener.py b/qface/idl/listener.py
index 8bc6d36..3704444 100644
--- a/qface/idl/listener.py
+++ b/qface/idl/listener.py
@@ -154,7 +154,7 @@ class DomainListener(TListener):
self.operation = Operation(name, self.interface)
modifier = ctx.operationModifierSymbol()
if modifier:
- self.operation.const = bool(modifier.is_const)
+ self.operation.is_const = bool(modifier.is_const)
self.parse_annotations(ctx, self.operation)
self.parse_type(ctx, self.operation.type)
contextMap[ctx] = self.operation
diff --git a/tests/test_parser.py b/tests/test_parser.py
index 128e691..764a7b9 100644
--- a/tests/test_parser.py
+++ b/tests/test_parser.py
@@ -68,9 +68,10 @@ def test_operation():
assert operation
operation = interface._contentMap['previousStation']
assert operation
+ assert not operation.is_const
operation = interface._contentMap['numStations']
assert operation
- assert operation.const
+ assert operation.is_const
def test_signals():