Index: tools/cr/cr/visitor.py |
diff --git a/tools/cr/cr/visitor.py b/tools/cr/cr/visitor.py |
index 339059714379607f4e631ba61873a936eadb532f..339040ca3c4762923f748f069d9200eddd29bdc1 100644 |
--- a/tools/cr/cr/visitor.py |
+++ b/tools/cr/cr/visitor.py |
@@ -30,6 +30,8 @@ class Visitor(object): |
def VisitNode(self, node): |
"""Called for every node in the tree.""" |
+ if not node.enabled: |
+ return self |
try: |
try: |
self.stack.append(node) |