summaryrefslogtreecommitdiff
path: root/giscanner/annotationparser.py
diff options
context:
space:
mode:
Diffstat (limited to 'giscanner/annotationparser.py')
-rw-r--r--giscanner/annotationparser.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/giscanner/annotationparser.py b/giscanner/annotationparser.py
index afeca9ce..758f606f 100644
--- a/giscanner/annotationparser.py
+++ b/giscanner/annotationparser.py
@@ -1007,8 +1007,8 @@ class GtkDocCommentBlock(GtkDocAnnotatable):
Represents a GTK-Doc comment block.
'''
- __slots__ = ('code_before', 'code_after', 'indentation',
- 'name', 'params', 'description', 'tags')
+ __slots__ = ('code_before', 'code_after', 'indentation', 'name',
+ 'params', 'lower_params', 'description', 'tags')
#: Valid annotation names for the GTK-Doc comment block identifier part.
valid_annotations = (ANN_ATTRIBUTES, ANN_CONSTRUCTOR, ANN_FOREIGN, ANN_GET_VALUE_FUNC,
@@ -1035,6 +1035,9 @@ class GtkDocCommentBlock(GtkDocAnnotatable):
#: applied to this :class:`GtkDocCommentBlock`.
self.params = OrderedDict()
+ #: Like params, but all of its keys are in lower-case.
+ self.lower_params = OrderedDict()
+
#: The GTK-Doc comment block description part.
self.description = None
@@ -1405,6 +1408,7 @@ class GtkDocCommentBlockParser(object):
parameter.description = result.description
comment_block.params[param_name] = parameter
+ comment_block.lower_params[param_name.lower()] = parameter
current_part = parameter
continue