diff options
author | Mathieu Duponchelle <mduponchelle1@gmail.com> | 2020-07-22 21:36:59 +0000 |
---|---|---|
committer | Mathieu Duponchelle <mduponchelle1@gmail.com> | 2020-07-22 21:36:59 +0000 |
commit | 6da80b312e410ee7c3b24e7176b3f07e30225ac5 (patch) | |
tree | d18c601435601c3ebadd87721ae583d99fbb57a7 /giscanner/sectionparser.py | |
parent | 46d32c596cc41fd66036c648aca4900058072749 (diff) | |
parent | b8c92fddbfbadc910ef0c0c6c65bd5648b8e86ca (diff) | |
download | gobject-introspection-6da80b312e410ee7c3b24e7176b3f07e30225ac5.tar.gz |
Merge branch 'standalone-doc-sections' into 'master'
Add the notion of standalone doc sections.
See merge request GNOME/gobject-introspection!226
Diffstat (limited to 'giscanner/sectionparser.py')
-rw-r--r-- | giscanner/sectionparser.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/giscanner/sectionparser.py b/giscanner/sectionparser.py index ed4660fe..b8850432 100644 --- a/giscanner/sectionparser.py +++ b/giscanner/sectionparser.py @@ -148,5 +148,7 @@ def generate_sections_file(transformer): append_symbol(section, meth.symbol) for meth in node.static_methods: append_symbol(section, meth.symbol) + elif isinstance(node, ast.DocSection): + section = new_section(None, node.name) return SectionsFile(sections) |