From d96b8561caf5c9312a0c1ae450314d18dcb7fb09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Sim=C3=B5es?= Date: Thu, 6 Feb 2020 00:13:52 +0000 Subject: [PATCH] Add missing type ref processing on method body MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Also minor fix in output message. Signed-off-by: José Simões --- source/MetadataProcessor.Console/Program.cs | 2 +- source/MetadataProcessor.Core/nanoAssemblyBuilder.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/source/MetadataProcessor.Console/Program.cs b/source/MetadataProcessor.Console/Program.cs index 3ac8b7d2..2983d85a 100644 --- a/source/MetadataProcessor.Console/Program.cs +++ b/source/MetadataProcessor.Console/Program.cs @@ -100,7 +100,7 @@ public void Compile( catch (Exception) { System.Console.Error.WriteLine( - "Unable to compile output assembly file '{0}' - check parse command results.", fileName); + $"Unable to compile output assembly file '{fileName}' - check parse command results."); throw; } } diff --git a/source/MetadataProcessor.Core/nanoAssemblyBuilder.cs b/source/MetadataProcessor.Core/nanoAssemblyBuilder.cs index 9366152e..c13ad100 100644 --- a/source/MetadataProcessor.Core/nanoAssemblyBuilder.cs +++ b/source/MetadataProcessor.Core/nanoAssemblyBuilder.cs @@ -440,7 +440,8 @@ private HashSet BuildDependencyList(MetadataToken token) if (i.Operand is MethodReference || i.Operand is FieldReference || i.Operand is TypeDefinition || - i.Operand is TypeSpecification) + i.Operand is TypeSpecification || + i.Operand is TypeReference) { set.Add(((IMetadataTokenProvider)i.Operand).MetadataToken); }