summaryrefslogtreecommitdiff
path: root/giscanner/transformer.py
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2013-01-31 21:42:32 -0500
committerJasper St. Pierre <jstpierre@mecheye.net>2013-02-01 19:20:35 -0500
commit0f5f94ed8a86355003533452a2d6cc8077d27535 (patch)
treeb3551d2692fe51336223659db0f886a01a032eed /giscanner/transformer.py
parentf027b6841164fc5c712236b3c40a90808e1b7428 (diff)
downloadgobject-introspection-0f5f94ed8a86355003533452a2d6cc8077d27535.tar.gz
giscanner: Apply standard annotations to constant values
While there's no particular reason I need to do this, there really isn't any reason to not do this, and it helps with doctool or whatever in the future if we want to document when a constant showed up. g-ir-compiler also keeps track of constant deprecations, so this fixes constants not ever being deprecated. https://bugzilla.gnome.org/show_bug.cgi?id=693040
Diffstat (limited to 'giscanner/transformer.py')
-rw-r--r--giscanner/transformer.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/giscanner/transformer.py b/giscanner/transformer.py
index 67367999..ba7afb93 100644
--- a/giscanner/transformer.py
+++ b/giscanner/transformer.py
@@ -338,10 +338,7 @@ raise ValueError."""
elif stype == CSYMBOL_TYPE_UNION:
return self._create_union(symbol)
elif stype == CSYMBOL_TYPE_CONST:
- # Don't parse constants which are marked (skip)
- docblock = self._annotations.get(symbol.ident)
- if not docblock or not 'skip' in docblock.options:
- return self._create_const(symbol)
+ return self._create_const(symbol)
# Ignore variable declarations in the header
elif stype == CSYMBOL_TYPE_OBJECT:
pass