Equations
- s.mangle = String.mangleAux✝ s s.startPos ""
Instances For
Equations
- n.mangle pre = pre ++ Lean.Name.mangleAux✝ n
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
- Lean.mkModuleInitializationStem moduleName pkg? = moduleName.mangle (pkg?.elim "" fun (x : Lean.PkgId) => toString (String.mangle x) ++ toString "_")
Instances For
Equations
- Lean.mkModuleInitializationFunctionName moduleName pkg? = "initialize_" ++ Lean.mkModuleInitializationStem moduleName pkg?
Instances For
Equations
- Lean.mkPackageSymbolPrefix pkg? = pkg?.elim "l_" fun (x : Lean.PkgId) => toString "lp_" ++ toString (String.mangle x) ++ toString "_"
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.