From 3f6dd727233c364396cf9adff2e2721942228c0b Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Sun, 11 Jan 2009 22:59:13 +0000 Subject: Apply callback scope transfer before attempting to guess it, to a scenario where we guess/annotation something and then forcefully overrides it svn path=/branches/annotation/; revision=1010 --- giscanner/annotationparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/giscanner/annotationparser.py b/giscanner/annotationparser.py index 10ebe64b..b942ed38 100644 --- a/giscanner/annotationparser.py +++ b/giscanner/annotationparser.py @@ -312,13 +312,13 @@ class AnnotationApplier(object): def _parse_param(self, parent, param, block): tag = self._get_tag(block, param.name) options = getattr(tag, 'options', {}) - self._parse_param_ret_common(parent, param, options) if isinstance(parent, Function): scope = options.get('scope') if scope: param.scope = scope.one() param.transfer = PARAM_TRANSFER_NONE + self._parse_param_ret_common(parent, param, options) def _parse_param_ret_common(self, parent, node, options): node.direction = self._extract_direction(node, options) -- cgit v1.2.1