Source

dictionary_switches / code / PatternRefactoring / trashvisitor / FillableVisitor.py

Full commit
1
2
3
4
5
6
7
8
9
# PatternRefactoring/trashvisitor/FillableVisitor.py
# Adapter Decorator that adds the visitable
# decorator as the Trash objects are
# being created.

class FillableVisitor(Fillable):
    def __init__(self, ff): self.f = ff
    def addTrash(self, t):
        self.f.addTrash(VisitableDecorator(t))