Save mangled name in module graph
This commit is contained in:
@@ -150,8 +150,6 @@ public class NubTypeFunc : NubType
|
||||
public IReadOnlyList<NubType> Parameters { get; }
|
||||
public NubType ReturnType { get; }
|
||||
|
||||
public string MangledName(string name, string module) => Name.Create(name, module, this);
|
||||
|
||||
private NubTypeFunc(List<NubType> parameters, NubType returnType)
|
||||
{
|
||||
Parameters = parameters;
|
||||
@@ -434,9 +432,9 @@ public static class Hashing
|
||||
}
|
||||
}
|
||||
|
||||
public static class Name
|
||||
public static class NameMangler
|
||||
{
|
||||
public static string Create(string module, string name, NubType type)
|
||||
public static string Mangle(string module, string name, NubType type)
|
||||
{
|
||||
var canonical = TypeEncoder.Encode(type);
|
||||
var hash = Hashing.Fnv1a64(canonical);
|
||||
|
||||
Reference in New Issue
Block a user