summaryrefslogtreecommitdiff
path: root/giscanner/annotationparser.py
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2013-03-27 17:09:16 -0400
committerJasper St. Pierre <jstpierre@mecheye.net>2014-06-10 12:34:35 -0400
commita1ec815afd2dd4379ce443efbb4d4aca4cf97c33 (patch)
treeebc574ae3a6b79a3e0adc976ebf5fcd36c67c4c3 /giscanner/annotationparser.py
parentd906932afae1b4e961b8cf3210b2dee95f73058b (diff)
downloadgobject-introspection-doc-sections.tar.gz
giscanner: Create AST nodes for SECTION: doc blocks; add a GIR nodedoc-sections
These will eventually be paired with the sections file parser to create a set of sections.
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