[gobject-introspection] docwriter: Skip non-introspectable nodes in introspectable languages
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] docwriter: Skip non-introspectable nodes in introspectable languages
- Date: Fri, 15 Feb 2013 04:38:50 +0000 (UTC)
commit afe9d25896491db94bdbfac109f003d9ec9ff852
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Feb 14 22:28:16 2013 -0500
docwriter: Skip non-introspectable nodes in introspectable languages
giscanner/docwriter.py | 3 +
.../Regress.AnnotationObject.watch.page | 45 -------------
.../Regress.FooObject-hidden.page | 29 ---------
.../Regress.FooObject.new_cookie.page | 46 --------------
.../Regress.FooObject.skipped_method.page | 38 -----------
.../Regress.FooObject.take_all.page | 47 --------------
.../Regress.FooRectangle.new.page | 65 -------------------
.../Regress.FooSkippable.page | 32 ----------
.../Regress.FooVarargsCallback.page | 25 --------
.../Regress-1.0-Gjs-expected/Regress.IntSet.page | 25 --------
.../Regress.SkippedStructure.page | 26 --------
.../Regress.VaListAlias.page | 25 --------
.../Regress.foo_skip_me.page | 45 -------------
.../Regress.foo_some_variant.page | 50 ---------------
.../Regress.foo_some_variant_ptr.page | 50 ---------------
.../Regress.foo_test_varargs_callback.page | 50 ---------------
.../Regress.foo_test_varargs_callback2.page | 44 -------------
.../Regress.foo_test_varargs_callback3.page | 50 ---------------
.../Regress.not_introspectable_via_alias.page | 44 -------------
...ess.random_function_with_skipped_structure.page | 56 -----------------
.../Regress.test_skip_unannotated_callback.page | 45 -------------
.../Regress.test_value_get_fundamental_object.page | 46 --------------
.../Regress.test_value_set_fundamental_object.page | 50 ---------------
.../Regress.AnnotationObject.watch.page | 58 -----------------
.../Regress.FooObject-hidden.page | 29 ---------
.../Regress.FooObject.new_cookie.page | 53 ----------------
.../Regress.FooObject.skipped_method.page | 45 -------------
.../Regress.FooObject.take_all.page | 54 ----------------
.../Regress.FooRectangle.new.page | 66 --------------------
.../Regress.FooSkippable.page | 32 ----------
.../Regress.FooVarargsCallback.page | 25 --------
.../Regress.IntSet.page | 25 --------
.../Regress.SkippedStructure.page | 26 --------
.../Regress.VaListAlias.page | 25 --------
.../Regress.foo_skip_me.page | 46 --------------
.../Regress.foo_some_variant.page | 51 ---------------
.../Regress.foo_some_variant_ptr.page | 51 ---------------
.../Regress.foo_test_varargs_callback.page | 51 ---------------
.../Regress.foo_test_varargs_callback2.page | 45 -------------
.../Regress.foo_test_varargs_callback3.page | 51 ---------------
.../Regress.not_introspectable_via_alias.page | 45 -------------
...ess.random_function_with_skipped_structure.page | 57 -----------------
.../Regress.test_skip_unannotated_callback.page | 46 --------------
.../Regress.test_value_get_fundamental_object.page | 47 --------------
.../Regress.test_value_set_fundamental_object.page | 51 ---------------
45 files changed, 3 insertions(+), 1912 deletions(-)
---
diff --git a/giscanner/docwriter.py b/giscanner/docwriter.py
index 9b27e0d..bf0ca20 100644
--- a/giscanner/docwriter.py
+++ b/giscanner/docwriter.py
@@ -391,6 +391,9 @@ class DocFormatterIntrospectableBase(DocFormatter):
if isinstance(node, ast.Record) and node.is_gtype_struct_for is not None:
return False
+ if not getattr(node, "introspectable", True):
+ return False
+
return True
class DocFormatterPython(DocFormatterIntrospectableBase):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]