parameters: (self)
return_statement: return self._finalize
docstring: Build the finalize function to be used on constants and at
          runtime. Cached so it's only created once for all output nodes.
  
          Returns a ``namedtuple`` with the following attributes:
  
          ``const``
              A function to finalize constant data at compile time.
  
          ``src``
              Source code to output around nodes to be evaluated at
              runtime.
docstring_summary: Build the finalize function to be used on constants and at
          runtime. Cached so it's only created once for all output nodes.
docstring_tokens: Build the finalize function to be used on constants and at runtime . Cached so it s only created once for all output nodes .
function: def _make_finalize(self):
          """Build the finalize function to be used on constants and at
          runtime. Cached so it's only created once for all output nodes.
  
          Returns a ``namedtuple`` with the following attributes:
  
          ``const``
              A function to finalize constant data at compile time.
  
          ``src``
              Source code to output around nodes to be evaluated at
              runtime.
          """
          if self._finalize is not None:
              return self._finalize
  
          finalize = default = self._default_finalize
          src = None
  
          if self.environment.finalize:
              src = "environment.finalize("
              env_finalize = self.environment.finalize
  
              def finalize(value):
                  return default(env_finalize(value))
  
              if getattr(env_finalize, "contextfunction", False) is True:
                  src += "context, "
                  finalize = None  # noqa: F811
              elif getattr(env_finalize, "evalcontextfunction", False) is True:
                  src += "context.eval_ctx, "
                  finalize = None
              elif getattr(env_finalize, "environmentfunction", False) is True:
                  src += "environment, "
  
                  def finalize(value):
                      return default(env_finalize(self.environment, value))
  
          self._finalize = self._FinalizeInfo(finalize, src)
          return self._finalize
function_tokens: def _make_finalize ( self ) : if self . _finalize is not None : return self . _finalize finalize = default = self . _default_finalize src = None if self . environment . finalize : src = "environment.finalize(" env_finalize = self . environment . finalize def finalize ( value ) : return default ( env_finalize ( value ) ) if getattr ( env_finalize , "contextfunction" , False ) is True : src += "context, " finalize = None # noqa: F811 elif getattr ( env_finalize , "evalcontextfunction" , False ) is True : src += "context.eval_ctx, " finalize = None elif getattr ( env_finalize , "environmentfunction" , False ) is True : src += "environment, " def finalize ( value ) : return default ( env_finalize ( self . environment , value ) ) self . _finalize = self . _FinalizeInfo ( finalize , src ) return self . _finalize