Preparing for an eventual replacement of using expr_stmt for all nodes.

This commit is contained in:
Dave Halter committed 2015-03-05 00:07:50 +01:00
1 parent aea38ca9aa
commit f273e314b6
3 files changed
+14 -10

No files matched your search

+2
View File
@@ -159,6 +159,8 @@ class Evaluator(object):
return [er.LambdaWrapper(self, element)]
elif element.isinstance(er.LambdaWrapper):
return [element] # TODO this is no real evaluation.
elif element.type == 'expr_stmt':
return self.eval_statement(element)
elif element.type == 'power':
types = self._eval_atom(element.children[0])
for trailer in element.children[1:]: