summaryrefslogtreecommitdiff
path: root/giscanner
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2010-09-19 12:14:26 -0300
committerJohan Dahlin <johan@gnome.org>2010-09-19 12:14:26 -0300
commit2f6638b2c15aee49b08784f13bd5f945466f97a7 (patch)
tree9d1ca8dcd2bd67f52f78fb2519bea7940154876d /giscanner
parent13713e7c99b825974668bd3b5f96b03a25e1986b (diff)
Include proper filename and lineno in doc warning
Diffstat (limited to 'giscanner')
-rw-r--r--giscanner/maintransformer.py4
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)