Permalink
Browse files

[BUG #5706] ignore optional label arguments of continue/break stmts

  • Loading branch information...
1 parent 7f80817 commit 1b6774ba97414335e97923a93dbbfe9611144cd8 @thron7 thron7 committed with derrell Mar 6, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 tool/pylib/generator/code/clazz/MClassDependencies.py
@@ -455,6 +455,10 @@ def _isInterestingReference(self, assembled, node, fileId, inDefer):
def checkNodeContext(node):
context = 'interesting' # every context is interesting, maybe we get more specific or reset to ''
+ # don't treat label references
+ if node.parent.type in ("break", "continue"):
+ return ''
+
# as _isInterestingReference is run on *any* var node while
# traversing the tree intermediate occurrences var nodes like
# in 'a.b().c[d].e' are run through it as well; but it is enough to treat

0 comments on commit 1b6774b

Please sign in to comment.