Remove interfaces

This commit is contained in:
nub31
2025-09-12 22:08:26 +02:00
parent 2d44b7010b
commit 5432521869
14 changed files with 32 additions and 300 deletions

View File

@@ -42,18 +42,6 @@ public class ModuleRepository
module.RegisterStruct(structDef.Exported, structDef.Name, fields, functions);
break;
}
case InterfaceSyntax interfaceDef:
{
var functions = new List<ModuleInterfaceFunction>();
foreach (var function in interfaceDef.Functions)
{
var parameters = function.Signature.Parameters.Select(x => new ModuleInterfaceFunctionParameter(x.Name, x.Type)).ToList();
functions.AddRange(new ModuleInterfaceFunction(function.Name, parameters, function.Signature.ReturnType));
}
module.RegisterInterface(interfaceDef.Exported, interfaceDef.Name, functions);
break;
}
default:
{
throw new ArgumentOutOfRangeException(nameof(definition));