Skip to content

Commit 285808c

Browse files
authored
Add missing type ref processing on method body (#46)
1 parent 4e0c856 commit 285808c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

source/MetadataProcessor.Console/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public void Compile(
100100
catch (Exception)
101101
{
102102
System.Console.Error.WriteLine(
103-
"Unable to compile output assembly file '{0}' - check parse command results.", fileName);
103+
$"Unable to compile output assembly file '{fileName}' - check parse command results.");
104104
throw;
105105
}
106106
}

source/MetadataProcessor.Core/nanoAssemblyBuilder.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,8 @@ private HashSet<MetadataToken> BuildDependencyList(MetadataToken token)
440440
if (i.Operand is MethodReference ||
441441
i.Operand is FieldReference ||
442442
i.Operand is TypeDefinition ||
443-
i.Operand is TypeSpecification)
443+
i.Operand is TypeSpecification ||
444+
i.Operand is TypeReference)
444445
{
445446
set.Add(((IMetadataTokenProvider)i.Operand).MetadataToken);
446447
}

0 commit comments

Comments
 (0)