summaryrefslogtreecommitdiff
path: root/giscanner
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2010-09-02 17:18:35 -0300
committerJohan Dahlin <johan@gnome.org>2010-09-02 17:19:18 -0300
commitb0b18465bc01e4b261670c40f7122d9516c430fd (patch)
treed09225deff43a4fc6d66c7e60eb8a5f3ff26af20 /giscanner
parent4da9654e44eff6eb7c22510d89a3b00e969a16ab (diff)
downloadgobject-introspection-b0b18465bc01e4b261670c40f7122d9516c430fd.tar.gz
[tests] Add callback scope tests
And fix a bug in the warning call in the scanner
Diffstat (limited to 'giscanner')
-rw-r--r--giscanner/maintransformer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/giscanner/maintransformer.py b/giscanner/maintransformer.py
index 9a8d93de..1aeb089b 100644
--- a/giscanner/maintransformer.py
+++ b/giscanner/maintransformer.py
@@ -485,9 +485,9 @@ class MainTransformer(object):
if scope not in [ast.PARAM_SCOPE_CALL,
ast.PARAM_SCOPE_ASYNC,
ast.PARAM_SCOPE_NOTIFIED]:
- message.warn(
+ message.warn_node(
parent,
- "Invalid scope %r for parameter %r" % (scope, param.name))
+ "Invalid scope %r for parameter %r" % (scope, param.argname))
else:
param.scope = scope
param.transfer = ast.PARAM_TRANSFER_NONE