summaryrefslogtreecommitdiff
path: root/giscanner/introspectablepass.py
diff options
context:
space:
mode:
authorDieter Verfaillie <dieterv@optionexplicit.be>2012-04-05 23:15:31 +0200
committerDieter Verfaillie <dieterv@optionexplicit.be>2012-04-05 23:15:31 +0200
commit4019e078b3f20872cc11b70ae4686ce5f74c1bb9 (patch)
tree76a0fbff691103f14b975e9842538b2b9bb338d0 /giscanner/introspectablepass.py
parentc93dafe97e700029489bc6de2e00975277213a35 (diff)
downloadgobject-introspection-4019e078b3f20872cc11b70ae4686ce5f74c1bb9.tar.gz
Split parameter and tag storage in annotationparser parse tree
This avoids tags overwriting parameters if they happen to share the same name. For example, this was triggered by valid code in libgnome-keyring. tests/scanner/regress.c and tests/scanner/regress.h test written by Colin Walters <walters@verbum.org>. https://bugzilla.gnome.org/show_bug.cgi?id=672254
Diffstat (limited to 'giscanner/introspectablepass.py')
-rw-r--r--giscanner/introspectablepass.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/introspectablepass.py b/giscanner/introspectablepass.py
index 77a0e4f7..97ccfe71 100644
--- a/giscanner/introspectablepass.py
+++ b/giscanner/introspectablepass.py
@@ -58,7 +58,7 @@ class IntrospectablePass(object):
else:
context = "return value: "
if block:
- return_tag = block.get(TAG_RETURNS)
+ return_tag = block.get_tag(TAG_RETURNS)
if return_tag:
position = return_tag.position
message.warn_node(parent, prefix + context + text,