summaryrefslogtreecommitdiff
path: root/giscanner/maintransformer.py
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2018-02-09 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2018-02-09 10:00:30 +0100
commit4bfdc83b063bce3821b09e88e5ee3207a10259d2 (patch)
tree1321e2fb20653678c29457517da0aa590a0101f1 /giscanner/maintransformer.py
parent31ab9496cb882a21a1b64b1ef39f06514073dea5 (diff)
downloadgobject-introspection-4bfdc83b063bce3821b09e88e5ee3207a10259d2.tar.gz
Preserve complete_ctype when using type from annotation.
When replacing type with one from user annotation we already preserve ctype, do the same for complete_ctype to preserve const / volatile qualifiers if any. Fixes issue #190.
Diffstat (limited to 'giscanner/maintransformer.py')
-rw-r--r--giscanner/maintransformer.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/giscanner/maintransformer.py b/giscanner/maintransformer.py
index 23ed4102..275f1c08 100644
--- a/giscanner/maintransformer.py
+++ b/giscanner/maintransformer.py
@@ -330,6 +330,7 @@ class MainTransformer(object):
# might lose the ctype from the original node.
if type_node is not None:
result.ctype = type_node.ctype
+ result.complete_ctype = type_node.complete_ctype
return result
def _get_position(self, func, param):