chore: cleanup dotnet errors

This commit is contained in:
Roflmuffin
2023-10-08 22:51:15 +10:00
parent 74a21ee0a1
commit 1b5572aeb4
2 changed files with 11 additions and 9 deletions

View File

@@ -4,13 +4,20 @@ namespace CodeGen.Natives;
class NativeDefinition
{
public string Name { get; set; }
public NativeDefinition(string name, Dictionary<string, string> arguments, string returnType)
{
Name = name;
Arguments = arguments;
ReturnType = returnType;
}
public string Name { get; init; }
public string NameCamelCase => Name.ToPascalCase();
public Dictionary<string, string> Arguments { get; set; }
public Dictionary<string, string> Arguments { get; init; }
public string ReturnType { get; set; }
public string ReturnType { get; init; }
public ulong Hash
{

View File

@@ -54,12 +54,7 @@ namespace CodeGen.Natives
);
}
natives.Add(new()
{
Name = nativeName,
ReturnType = returnType,
Arguments = parameters
});
natives.Add(new(nativeName, parameters, returnType));
}
}