Remove interfaces
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user