Fix erroneous refactorings

This commit is contained in:
Tamas Vajk
2020-12-03 23:09:11 +01:00
parent 151379edd8
commit 332a64a6ca
2 changed files with 4 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.IO;
using System.Diagnostics.CodeAnalysis;
using System;
using System.Linq;
namespace Semmle.Extraction.CIL.Entities
{
@@ -195,7 +195,7 @@ namespace Semmle.Extraction.CIL.Entities
protected bool IsPrimitiveType => TryGetPrimitiveTypeCode(out _);
public sealed override IEnumerable<Type> MethodParameters => throw new NotImplementedException();
public sealed override IEnumerable<Type> MethodParameters => Enumerable.Empty<Type>();
public static Type DecodeType(GenericContext gc, TypeSpecificationHandle handle) =>
gc.Cx.MdReader.GetTypeSpecification(handle).DecodeSignature(gc.Cx.TypeSignatureDecoder, gc);

View File

@@ -6,6 +6,7 @@ using System.Linq;
using System.Collections.Generic;
using System.Reflection;
using System.IO;
using System.Reflection.Metadata.Ecma335;
namespace Semmle.Extraction.CIL.Entities
{
@@ -152,7 +153,7 @@ namespace Semmle.Extraction.CIL.Entities
{
get
{
yield return Tuples.metadata_handle(this, Cx.Assembly, handle.GetHashCode());
yield return Tuples.metadata_handle(this, Cx.Assembly, MetadataTokens.GetToken(handle));
foreach (var c in base.Contents) yield return c;