diff --git a/MetadataProcessor.Shared/Tables/nanoTypeSpecificationsTable.cs b/MetadataProcessor.Shared/Tables/nanoTypeSpecificationsTable.cs index a3641ce..68c5c83 100644 --- a/MetadataProcessor.Shared/Tables/nanoTypeSpecificationsTable.cs +++ b/MetadataProcessor.Shared/Tables/nanoTypeSpecificationsTable.cs @@ -298,6 +298,11 @@ private void FillTypeSpecsFromTypes() foreach (MethodDefinition m in td.Methods.Where(m => m.HasBody)) { + foreach (VariableDefinition variable in m.Body.Variables) + { + ExpandNestedTypeSpecs(variable.VariableType); + } + foreach (Instruction instr in m.Body.Instructions) { if (instr.Operand is GenericInstanceMethod genericInstanceMethod) @@ -399,6 +404,9 @@ private void ExpandNestedTypeSpecs(TypeReference t) ExpandNestedTypeSpecs(arg); } + ushort declId = _context.SignaturesTable.GetOrCreateSignatureId(git); + AddIfNew(git, declId); + break; case ArrayType at: