Permalink
Browse files

removed unused ast visitor

  • Loading branch information...
1 parent 85e446d commit ad01da7c8369e2e2aa5eb2a215ede44981504f0b @herczy committed Apr 12, 2012
Showing with 0 additions and 14 deletions.
  1. +0 −14 codega/alp/ast.py
View
@@ -135,20 +135,6 @@ def __repr__(self):
return NodeBase
-class AstMetaVisitor(object):
- def __init__(self, visitor):
- self._subvisitor = visitor
-
- def visit(self, ast):
- if hasattr(ast, 'metainfo'):
- properties = {}
- for key in ast.keys:
- properties[key] = self.visit(ast[key])
-
- ast = ast.__class__(**properties)
-
- return self._subvisitor.visit(ast)
-
class AstVisitor(VisitorBase):
def aspects(self, node):
if hasattr(node, 'metainfo'):

0 comments on commit ad01da7

Please sign in to comment.