2009-01-12 Johan Dahlin <jdahlin@async.com.br>
Bug 566560 – giscanner.transformer.SkipError
* giscanner/transformer.py:
Catch SkipError for all nodes, not just functions.
Makes it possible to skip unsupported parameter types in
callbacks.
svn path=/trunk/; revision=1018
2009-01-12 Johan Dahlin <jdahlin@async.com.br>
+ Bug 566560 – giscanner.transformer.SkipError
+
+ * giscanner/transformer.py:
+
+ Catch SkipError for all nodes, not just functions.
+ Makes it possible to skip unsupported parameter types in
+ callbacks.
+
+2009-01-12 Johan Dahlin <jdahlin@async.com.br>
+
Bug 563794 - Redo annotation parsing & applying
Thanks to Colin for helping out considerably in landing this.
def parse(self):
nodes = []
for symbol in self.generator.get_symbols():
- node = self._traverse_one(symbol)
+ try:
+ node = self._traverse_one(symbol)
+ except SkipError:
+ continue
self._add_node(node)
return self._namespace
if stype is None:
stype = symbol.type
if stype == CSYMBOL_TYPE_FUNCTION:
- try:
- return self._create_function(symbol)
- except SkipError:
- return
+ return self._create_function(symbol)
elif stype == CSYMBOL_TYPE_TYPEDEF:
return self._create_typedef(symbol)
elif stype == CSYMBOL_TYPE_STRUCT: