Documentation

Lean.Compiler.NameMangling

Equations
    Instances For
      def Lean.Name.mangle (n : Name) (pre : String := "l_") :
      Equations
        Instances For
          @[export lean_mk_mangled_boxed_name]

          Given s = nm.mangle pre for some nm : Name and pre : String with nm != Name.anonymous, returns (mkBoxedName nm).mangle pre. This is used in the interpreter to find names of boxed IR declarations.

          Equations
            Instances For

              The mangled name of the name used to create the module initialization function.

              This also used for the library name of a module plugin.

              Equations
                Instances For
                  Equations
                    Instances For
                      Equations
                        Instances For

                          Assuming s has been produced by Name.mangle _ "", return the original name.

                          Equations
                            Instances For

                              Returns the demangled version of s, if it's the result of Name.mangle _ "". Otherwise returns none.

                              Equations
                                Instances For