Skip to content
Snippets Groups Projects
Commit 1ba9d51b2dcd authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

add some notes

parent 20eeb140d658
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment