From 4019e078b3f20872cc11b70ae4686ce5f74c1bb9 Mon Sep 17 00:00:00 2001 From: Dieter Verfaillie Date: Thu, 5 Apr 2012 23:15:31 +0200 Subject: 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 . https://bugzilla.gnome.org/show_bug.cgi?id=672254 --- giscanner/introspectablepass.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'giscanner/introspectablepass.py') 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, -- cgit v1.2.1