summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2013-01-09 02:20:55 -0500
committerJasper St. Pierre <jstpierre@mecheye.net>2013-01-09 03:16:13 -0500
commit10d366ff029f3644bdc3ee659421ebc843ca3b09 (patch)
tree2552d697321fdc7ad59a4160957cb15098a6e839
parent0153b1f4e8fc614800860df24aedda67ec3a4e16 (diff)
downloadgobject-introspection-10d366ff029f3644bdc3ee659421ebc843ca3b09.tar.gz
mallardwriter: Rearrange definitions to match scanner order
-rw-r--r--giscanner/mallardwriter.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/giscanner/mallardwriter.py b/giscanner/mallardwriter.py
index fe4307ac..8c228ce8 100644
--- a/giscanner/mallardwriter.py
+++ b/giscanner/mallardwriter.py
@@ -236,6 +236,9 @@ class MallardFormatter(object):
return self.format_xref(type_)
+ def _process_fundamental(self, node, match, props):
+ return self.fundamentals.get(props['fundamental'], match)
+
def _process_function_call(self, node, match, props):
func = self._resolve_symbol(props['symbol_name'])
if func is None:
@@ -243,9 +246,6 @@ class MallardFormatter(object):
return self.format_xref(func)
- def _process_fundamental(self, node, match, props):
- return self.fundamentals.get(props['fundamental'], match)
-
def _process_token(self, node, tok):
kind, match, props = tok
@@ -254,8 +254,8 @@ class MallardFormatter(object):
'property': self._process_property,
'signal': self._process_signal,
'type_name': self._process_type_name,
- 'function_call': self._process_function_call,
'fundamental': self._process_fundamental,
+ 'function_call': self._process_function_call,
}
return dispatch[kind](node, match, props)