[gobject-introspection/wip/doctool-improvements: 8/14] mallardwriter: Rearrange definitions to match scanner order



commit 10d366ff029f3644bdc3ee659421ebc843ca3b09
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Jan 9 02:20:55 2013 -0500

    mallardwriter: Rearrange definitions to match scanner order

 giscanner/mallardwriter.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/giscanner/mallardwriter.py b/giscanner/mallardwriter.py
index fe4307a..8c228ce 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)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]