return Member(symbol.ident, symbol.base_type.name,
symbol.ident)
- def _create_function(self, symbol):
- directives = symbol.directives()
- parameters = list(self._create_parameters(
- symbol.base_type, directives))
- return_ = self._create_return(symbol.base_type.base_type,
- directives.get('return', []))
- name = self._strip_namespace_func(symbol.ident)
- func = Function(name, return_, parameters, symbol.ident)
+ def _parse_deprecated(self, node, directives):
deprecated = directives.get('deprecated', False)
if deprecated:
deprecated_value = deprecated[0]
+ print "DEPRECATED: %r" % (deprecated_value, )
if ':' in deprecated_value:
# Split out gtk-doc version
- (func.deprecated_version, func.deprecated) = \
+ (node.deprecated_version, node.deprecated) = \
[x.strip() for x in deprecated_value.split(':', 1)]
else:
# No version, just include str
- func.deprecated = deprecated_value.strip()
+ node.deprecated = deprecated_value.strip()
+
+ def _create_function(self, symbol):
+ directives = symbol.directives()
+ parameters = list(self._create_parameters(
+ symbol.base_type, directives))
+ return_ = self._create_return(symbol.base_type.base_type,
+ directives.get('return', []))
+ name = self._strip_namespace_func(symbol.ident)
+ func = Function(name, return_, parameters, symbol.ident)
+ self._parse_deprecated(func, directives)
return func
def _create_source_type(self, source_type):