diff options
author | Johan Dahlin <johan@gnome.org> | 2010-09-19 12:14:26 -0300 |
---|---|---|
committer | Johan Dahlin <johan@gnome.org> | 2010-09-19 12:14:26 -0300 |
commit | 2f6638b2c15aee49b08784f13bd5f945466f97a7 (patch) | |
tree | 9d1ca8dcd2bd67f52f78fb2519bea7940154876d /giscanner | |
parent | 13713e7c99b825974668bd3b5f96b03a25e1986b (diff) |
Include proper filename and lineno in doc warning
Diffstat (limited to 'giscanner')
-rw-r--r-- | giscanner/maintransformer.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/giscanner/maintransformer.py b/giscanner/maintransformer.py index 242cb46..2bf2102 100644 --- a/giscanner/maintransformer.py +++ b/giscanner/maintransformer.py @@ -611,9 +611,11 @@ usage is void (*_gtk_reserved1)(void);""" text = ', should be one of %s' % ( ', '.join(repr(p) for p in allparams), ) + tag = block.get(doc_name) message.warn( '%s: unknown parameter %r in documentation comment%s' % ( - block.name, doc_name, text)) + block.name, doc_name, text), + [(block.filename, tag.lineno, -1)]) def _apply_annotations_callable(self, node, chain, block): self._apply_annotations_annotated(node, block) |