add some notes stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 09 Jun 2010 14:20:05 +0200
branchstable
changeset 553 1ba9d51b2dcd
parent 552 20eeb140d658
child 554 db3cf081360b
add some notes
stcheck.py
--- a/stcheck.py	Wed Jun 09 14:19:55 2010 +0200
+++ b/stcheck.py	Wed Jun 09 14:20:05 2010 +0200
@@ -473,6 +473,7 @@
         #assert not node.annotated
         node.accept(self)
         node.annotated = True
+
     def _visit_stmt(self, node):
         for var in node.defined_vars.itervalues():
             var.prepare_annotation()
@@ -627,6 +628,8 @@
                 if key == 'uidrels':
                     constnode = relation.get_variable_parts()[1]
                     if not (relation.operator() != '=' or
+                            # XXX use state to detect relation under NOT/OR
+                            # + check variable's scope
                             isinstance(relation.parent, Not) or
                             relation.parent.ored()):
                         if isinstance(constnode, Constant):