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