Browse Source

Fix compile errors after merge

pull/1198/head
Siegfried Pammer 8 years ago
parent
commit
1ac3286687
  1. 4
      ICSharpCode.Decompiler/TypeSystem/MetadataLoader.cs
  2. 1
      ILSpy/Languages/CSharpLanguage.cs
  3. 4
      ILSpy/SearchStrategies.cs

4
ICSharpCode.Decompiler/TypeSystem/MetadataLoader.cs

@ -291,7 +291,7 @@ namespace ICSharpCode.Decompiler.TypeSystem
/// a type system type reference.</param> /// a type system type reference.</param>
/// <param name="typeAttributes">Attributes associated with the Cecil type reference. /// <param name="typeAttributes">Attributes associated with the Cecil type reference.
/// This is used to support the 'dynamic' type.</param> /// This is used to support the 'dynamic' type.</param>
public ITypeReference ReadTypeReference(EntityHandle type, CustomAttributeHandleCollection typeAttributes = default) public ITypeReference ReadTypeReference(EntityHandle type, SRM.CustomAttributeHandleCollection typeAttributes = default(CustomAttributeHandleCollection))
{ {
int typeIndex = 0; int typeIndex = 0;
return CreateType(type, typeAttributes, ref typeIndex); return CreateType(type, typeAttributes, ref typeIndex);
@ -1713,7 +1713,7 @@ namespace ICSharpCode.Decompiler.TypeSystem
Metadata.IMetadataEntity result; Metadata.IMetadataEntity result;
lock (typeSystemTranslationTable) { lock (typeSystemTranslationTable) {
if (!typeSystemTranslationTable.TryGetValue (typeSystemObject, out result)) if (!typeSystemTranslationTable.TryGetValue (typeSystemObject, out result))
return default; return default(T);
} }
return (T)result; return (T)result;
} }

1
ILSpy/Languages/CSharpLanguage.cs

@ -34,7 +34,6 @@ using ICSharpCode.Decompiler.CSharp.Transforms;
using ICSharpCode.Decompiler.TypeSystem; using ICSharpCode.Decompiler.TypeSystem;
using ICSharpCode.ILSpy.Options; using ICSharpCode.ILSpy.Options;
using ICSharpCode.ILSpy.TreeNodes; using ICSharpCode.ILSpy.TreeNodes;
using ICSharpCode.Decompiler.CSharp.Transforms;
namespace ICSharpCode.ILSpy namespace ICSharpCode.ILSpy
{ {

4
ILSpy/SearchStrategies.cs

@ -234,9 +234,9 @@ namespace ICSharpCode.ILSpy
} }
} }
protected override bool MatchName(IMemberDefinition m, Language language) protected override bool MatchName(IMetadataEntity m, Language language)
{ {
return m.MetadataToken.ToInt32() == searchTermToken; return SRM.Ecma335.MetadataTokens.GetToken(m.Handle) == searchTermToken;
} }
} }

Loading…
Cancel
Save