parameters: (self, node)
docstring: Do constant folding.
docstring_summary: Do constant folding.
docstring_tokens: Do constant folding .
function: def fold(self, node):
          """Do constant folding."""
          node = self.generic_visit(node)
          try:
              return nodes.Const.from_untrusted(node.as_const(),
                                                lineno=node.lineno,
                                                environment=self.environment)
          except nodes.Impossible:
              return node
function_tokens: def fold ( self , node ) : node = self . generic_visit ( node ) try : return nodes . Const . from_untrusted ( node . as_const ( ) , lineno = node . lineno , environment = self . environment ) except nodes . Impossible : return node