Documentation

Lean.Compiler.NameMangling

def Lean.Name.mangle (n : Name) (pre : String := "l_") :
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.

    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.

      Instances For
        Instances For

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

          Instances For

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

            Instances For