Browse Source

Add ModuleDefinition to IDecompilerTypeSystem

pull/1198/head
Siegfried Pammer 8 years ago
parent
commit
d8a5947324
  1. 2
      ICSharpCode.Decompiler/TypeSystem/IDecompilerTypeSystem.cs
  2. 2
      ICSharpCode.Decompiler/TypeSystem/SpecializingDecompilerTypeSystem.cs

2
ICSharpCode.Decompiler/TypeSystem/IDecompilerTypeSystem.cs

@ -17,6 +17,7 @@ @@ -17,6 +17,7 @@
// DEALINGS IN THE SOFTWARE.
using System.Reflection.Metadata;
using ICSharpCode.Decompiler.Metadata;
namespace ICSharpCode.Decompiler.TypeSystem
{
@ -33,6 +34,7 @@ namespace ICSharpCode.Decompiler.TypeSystem @@ -33,6 +34,7 @@ namespace ICSharpCode.Decompiler.TypeSystem
IMember ResolveAsMember(EntityHandle memberReference);
MetadataReader GetMetadata();
PEFile ModuleDefinition { get; }
/// <summary>
/// Gets a type system instance that automatically specializes the results

2
ICSharpCode.Decompiler/TypeSystem/SpecializingDecompilerTypeSystem.cs

@ -47,6 +47,8 @@ namespace ICSharpCode.Decompiler.TypeSystem @@ -47,6 +47,8 @@ namespace ICSharpCode.Decompiler.TypeSystem
get { return context.Compilation; }
}
public Metadata.PEFile ModuleDefinition => context.ModuleDefinition;
public TypeParameterSubstitution Substitution {
get { return substitution; }
}

Loading…
Cancel
Save