This module implements constant folding on the AST. It handles simple cases such as
1 + 2 -> 3
2 ** 10 -> 1024
that’s only assigned once)
Perform constant folding on AST.
NOTE: Forbids assignment to True, False, None.
Evaluate the constant expression and return a ast.Num instance containing the result.
Get constant value from AST node.
Store the rhs value so we can inline them in future reference.
TODO: Remove assignment of constant