[gobject-introspection] [girparser] Callbacks and VFunctions can be shadowed
- From: Johan Dahlin <johan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] [girparser] Callbacks and VFunctions can be shadowed
- Date: Fri, 24 Sep 2010 19:32:30 +0000 (UTC)
commit 7e081e3117912310e6f9fc208f96ba3642143eaa
Author: Johan Dahlin <johan gnome org>
Date: Fri Sep 24 16:30:42 2010 -0300
[girparser] Callbacks and VFunctions can be shadowed
giscanner/girparser.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/giscanner/girparser.py b/giscanner/girparser.py
index 6ba6c2a..800b257 100644
--- a/giscanner/girparser.py
+++ b/giscanner/girparser.py
@@ -270,8 +270,6 @@ class GIRParser(object):
def _parse_function(self, node):
function = self._parse_function_common(node, ast.Function)
- function.shadows = node.attrib.get('shadows', None)
- function.shadowed_by = node.attrib.get('shadowed-by', None)
self._namespace.append(function)
def _parse_function_common(self, node, klass):
@@ -297,6 +295,9 @@ class GIRParser(object):
else:
assert False
+ func.shadows = node.attrib.get('shadows', None)
+ func.shadowed_by = node.attrib.get('shadowed-by', None)
+
parameters_node = node.find(_corens('parameters'))
if (parameters_node is not None):
for paramnode in self._find_children(parameters_node, _corens('parameter')):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]