AST walker

Fixed.


On Mon, Aug 11, 2014 at 1:50 AM, Nick Korasidis <notifications@github.com>
wrote:

> In compiler/ast.py:
>
> > @@ -330,3 +333,104 @@ class Function(Type):
> >      def __init__(self, fromType, toType):
> >          self.fromType = fromType
> >          self.toType = toType
> > +
> > +def map(root, func=None, obj=None):
> > +    class Mapper():
> > +        @classmethod
> > +        def map_listnode(cls, p):
> > +            Mapper.map(p.list)
>
> Since you are accepting a cls argument, isn't it more appropriate to be
> calling cls.map(p.list)?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/dionyziz/llama/pull/45/files#r16033961>.
>