return False, "children of (prod) node %s don" have exclusive scope" % (node.id)
for c in node.children:
consistent, err = is_consistent(c)
if not consistent:
return consistent, err
After Change
if len(prod_node.children) == 0:
return False, "Product node %s has no children" % (prod_node.id)
allchildscope.clear()
sum_features = 0
for child in prod_node.children:
sum_features += len(child.scope)
allchildscope.update(child.scope)