...
This commit is contained in:
@@ -5,6 +5,7 @@ namespace Compiler;
|
||||
public abstract class NubType
|
||||
{
|
||||
public abstract override string ToString();
|
||||
public string GetSignature() => TypeMangler.Encode(this);
|
||||
}
|
||||
|
||||
public sealed class NubTypeVoid : NubType
|
||||
@@ -214,7 +215,7 @@ static class TypeMangler
|
||||
break;
|
||||
|
||||
case NubTypeStruct st:
|
||||
sb.Append($"T({st.Module}::{st.Name})").Append(st.Module).Append("::").Append(st.Name).Append(')');
|
||||
sb.Append($"T({st.Module}::{st.Name})");
|
||||
break;
|
||||
|
||||
case NubTypeFunc fn:
|
||||
@@ -239,7 +240,7 @@ static class Hashing
|
||||
public static ulong Fnv1a64(string text)
|
||||
{
|
||||
const ulong offset = 14695981039346656037UL;
|
||||
const ulong prime = 1099511628211UL;
|
||||
const ulong prime = 1099511628211UL;
|
||||
|
||||
ulong hash = offset;
|
||||
foreach (var c in Encoding.UTF8.GetBytes(text))
|
||||
|
||||
Reference in New Issue
Block a user