scan nested types

This commit is contained in:
mischa 2023-06-23 11:03:13 +08:00
parent 103acb1df0
commit 9da88854ba

View File

@ -121,12 +121,19 @@ bool WeaveModule(ModuleDefinition moduleDefinition)
foreach (TypeDefinition td in moduleDefinition.Types)
{
// weave base type:
Log.Warning($"WEAVER CONSIDERING: {td.FullName}");
if (td.IsClass && td.BaseType.CanBeResolved())
{
modified |= WeaveNetworkBehavior(td);
modified |= ServerClientAttributeProcessor.Process(weaverTypes, Log, td, ref WeavingFailed);
}
// TODO weave nested types recursively
foreach (TypeDefinition nestedTd in td.NestedTypes)
{
Log.Warning($" NESTED: {nestedTd.FullName}");
}
}
watch.Stop();