This commit is contained in:
nub31
2025-09-11 22:03:30 +02:00
parent 3712a159e2
commit 8c76f75f7c
6 changed files with 42 additions and 21 deletions

View File

@@ -31,13 +31,13 @@ public static class TypeResolver
throw new Exception("Module not found: " + moduleName);
}
var structType = module.StructTypes.FirstOrDefault(x => x.Name == typeName);
var structType = module.AllStructTypes.FirstOrDefault(x => x.Name == typeName);
if (structType != null)
{
return structType;
}
var interfaceType = module.InterfaceTypes.FirstOrDefault(x => x.Name == typeName);
var interfaceType = module.AllInterfaceTypes.FirstOrDefault(x => x.Name == typeName);
if (interfaceType != null)
{
return interfaceType;
@@ -53,7 +53,7 @@ public static class TypeResolver
throw new Exception("Module not found: " + moduleName);
}
var structType = module.StructTypes.FirstOrDefault(x => x.Name == structName);
var structType = module.AllStructTypes.FirstOrDefault(x => x.Name == structName);
if (structType != null)
{
return structType;
@@ -69,7 +69,7 @@ public static class TypeResolver
throw new Exception("Module not found: " + moduleName);
}
var structType = module.InterfaceTypes.FirstOrDefault(x => x.Name == interfaceName);
var structType = module.AllInterfaceTypes.FirstOrDefault(x => x.Name == interfaceName);
if (structType != null)
{
return structType;
@@ -85,7 +85,7 @@ public static class TypeResolver
throw new Exception("Module not found: " + moduleName);
}
if (module.Functions.TryGetValue(funcName, out var funcType))
if (module.AllFunctions.TryGetValue(funcName, out var funcType))
{
return funcType;
}