diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-03-27 17:09:16 -0400 |
---|---|---|
committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2014-06-10 12:34:35 -0400 |
commit | a1ec815afd2dd4379ce443efbb4d4aca4cf97c33 (patch) | |
tree | ebc574ae3a6b79a3e0adc976ebf5fcd36c67c4c3 /giscanner/ast.py | |
parent | d906932afae1b4e961b8cf3210b2dee95f73058b (diff) | |
download | gobject-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/ast.py')
-rw-r--r-- | giscanner/ast.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/giscanner/ast.py b/giscanner/ast.py index a9537e8d..671db72e 100644 --- a/giscanner/ast.py +++ b/giscanner/ast.py @@ -1137,3 +1137,19 @@ class Callback(Callable): def __init__(self, name, retval, parameters, throws, ctype=None): Callable.__init__(self, name, retval, parameters, throws) self.ctype = ctype + + +class Section(Node): + + def __init__(self, name, short_description, long_description, + see_also, title, stability, section_id, include, + image): + Node.__init__(self, name) + self.short_description = short_description + self.long_description = long_description + self.see_also = see_also + self.title = title + self.stability = stability + self.section_id = section_id + self.include = include + self.image = image |