diff options
author | Johan Dahlin <johan@gnome.org> | 2010-09-20 17:17:20 -0300 |
---|---|---|
committer | Johan Dahlin <johan@gnome.org> | 2010-09-20 17:19:21 -0300 |
commit | 635b6ec35fbb1c2355e9b8b336f1a9164cc44034 (patch) | |
tree | 3b2b1ddfdc620082e5b3125fde1101e243dd4b08 /giscanner/maintransformer.py | |
parent | 84aa7defdb1a3082021bd28a61803a1e140cf8ca (diff) | |
download | gobject-introspection-635b6ec35fbb1c2355e9b8b336f1a9164cc44034.tar.gz |
[scanner] Add a Position class
Add a position class which will make it easier to
send filename/line/column information to the message
class.
Diffstat (limited to 'giscanner/maintransformer.py')
-rw-r--r-- | giscanner/maintransformer.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/giscanner/maintransformer.py b/giscanner/maintransformer.py index 533db8f7..47014eff 100644 --- a/giscanner/maintransformer.py +++ b/giscanner/maintransformer.py @@ -544,7 +544,7 @@ usage is void (*_gtk_reserved1)(void);""" message.warn( "Invalid scope %r for parameter %r" % (scope, param.argname), - [(tag.filename, tag.lineno, -1)]) + tag.position) else: param.scope = scope param.transfer = ast.PARAM_TRANSFER_NONE @@ -616,7 +616,7 @@ usage is void (*_gtk_reserved1)(void);""" message.warn( '%s: unknown parameter %r in documentation comment%s' % ( block.name, doc_name, text), - [(block.filename, tag.lineno, -1)]) + tag.position) def _apply_annotations_callable(self, node, chain, block): self._apply_annotations_annotated(node, block) |