def _method(self, expression, *args):
assert expression.__class__.__mro__[-<NUM_LIT:1>] is object<EOL>for cls in expression.__class__.__mro__:<EOL><INDENT>sort = cls.__name__<EOL>methodname = '<STR_LIT>' % sort<EOL>method = getattr(self, methodname, None)<EOL>if method is not None:<EOL><INDENT>method(expression, *args)<EOL>return<EOL><DEDENT><DEDENT>return<EOL>
Overload Visitor._method because we want to stop to iterate over the
visit_ functions as soon as a valid visit_ function is found