1.1 --- a/simplify/ast.py Sun Jun 24 20:05:24 2007 +0200
1.2 +++ b/simplify/ast.py Sun Jun 24 20:06:07 2007 +0200
1.3 @@ -85,12 +85,24 @@
1.4
1.5 self.visitor = self
1.6
1.7 - def process(self, node, name):
1.8 - result = self.dispatch(node, name)
1.9 + def process(self, module, name):
1.10 +
1.11 + """
1.12 + Process the 'module' having the given 'name'. Return the simplified node
1.13 + representing the 'module'.
1.14 + """
1.15 +
1.16 + result = self.dispatch(module, name)
1.17 result.simplifier = self
1.18 return result
1.19
1.20 def dispatch_or_none(self, node, *args):
1.21 +
1.22 + """
1.23 + Dispatch to a handler for 'node', returning the result, or if 'node' is
1.24 + None then return a node which loads None in the simplified program.
1.25 + """
1.26 +
1.27 if node is not None:
1.28 return self.dispatch(node, *args)
1.29 else: