[gobject-introspection] docwriter: Don't render private nodes



commit c2870483e7250ae577e2f25eac4b02c85609f08c
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Jan 31 15:19:54 2014 -0500

    docwriter: Don't render private nodes
    
    This prevents fields like __gtk_reserved1 from being emitted in the
    documentation.

 giscanner/docwriter.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/giscanner/docwriter.py b/giscanner/docwriter.py
index 982ab37..a4c817e 100644
--- a/giscanner/docwriter.py
+++ b/giscanner/docwriter.py
@@ -173,6 +173,9 @@ class DocFormatter(object):
         if isinstance(node, ast.Constant):
             return False
 
+        if getattr(node, "private", False):
+            return False
+
         return True
 
     def format(self, node, doc):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]