Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Unified Diff: tools/cr/cr/visitor.py

Issue 95613005: [cr tool] Don't visit disabled nodes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698