File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 22using System . Collections . Generic ;
33using System . IO ;
44using System . Diagnostics . CodeAnalysis ;
5- using System ;
5+ using System . Linq ;
66
77namespace Semmle . Extraction . CIL . Entities
88{
@@ -195,7 +195,7 @@ private bool TryGetPrimitiveTypeCode(out PrimitiveTypeCode code)
195195
196196 protected bool IsPrimitiveType => TryGetPrimitiveTypeCode ( out _ ) ;
197197
198- public sealed override IEnumerable < Type > MethodParameters => throw new NotImplementedException ( ) ;
198+ public sealed override IEnumerable < Type > MethodParameters => Enumerable . Empty < Type > ( ) ;
199199
200200 public static Type DecodeType ( GenericContext gc , TypeSpecificationHandle handle ) =>
201201 gc . Cx . MdReader . GetTypeSpecification ( handle ) . DecodeSignature ( gc . Cx . TypeSignatureDecoder , gc ) ;
Original file line number Diff line number Diff line change 66using System . Collections . Generic ;
77using System . Reflection ;
88using System . IO ;
9+ using System . Reflection . Metadata . Ecma335 ;
910
1011namespace Semmle . Extraction . CIL . Entities
1112{
@@ -152,7 +153,7 @@ public override IEnumerable<IExtractionProduct> Contents
152153 {
153154 get
154155 {
155- yield return Tuples . metadata_handle ( this , Cx . Assembly , handle . GetHashCode ( ) ) ;
156+ yield return Tuples . metadata_handle ( this , Cx . Assembly , MetadataTokens . GetToken ( handle ) ) ;
156157
157158 foreach ( var c in base . Contents ) yield return c ;
158159
You can’t perform that action at this time.
0 commit comments