128 Private method implementing the visit logic delegating to interesting |
128 Private method implementing the visit logic delegating to interesting |
129 methods. |
129 methods. |
130 |
130 |
131 @param root root node to visit |
131 @param root root node to visit |
132 """ |
132 """ |
133 call = lambda n: getattr(self, "visit_{0}".format(n.type), |
133 def call(n): |
134 self.visit_noop)(n) |
134 getattr(self, "visit_{0}".format(n.type), |
|
135 self.visit_noop)(n) |
|
136 |
135 call(root) |
137 call(root) |
136 for node in root: |
138 for node in root: |
137 self.__visit(node) |
139 self.__visit(node) |
138 |
140 |
139 def visit_noop(self, node): |
141 def visit_noop(self, node): |