Remove obsolete comment about parentheses (they are now implicit).
This commit is contained in:
@@ -152,7 +152,6 @@ class foldconst(object):
|
|||||||
self.FoldTree(child, 0)
|
self.FoldTree(child, 0)
|
||||||
if child[0]['nt'] == 'NEG':
|
if child[0]['nt'] == 'NEG':
|
||||||
# Double negation: - - expr --> expr
|
# Double negation: - - expr --> expr
|
||||||
# NOTE: Not 100% sure this doesn't need parentheses around expr.
|
|
||||||
node = parent[index] = child[0]['ch'][0]
|
node = parent[index] = child[0]['ch'][0]
|
||||||
child = node['ch'] if 'ch' in node else None
|
child = node['ch'] if 'ch' in node else None
|
||||||
elif child[0]['nt'] == 'CONST':
|
elif child[0]['nt'] == 'CONST':
|
||||||
|
|||||||
Reference in New Issue
Block a user