Browse Source

Use specializing type system in ILAst output to ensure consistency in debug output.

pull/877/head
Siegfried Pammer 8 years ago
parent
commit
610037ef43
  1. 3
      ILSpy/Languages/ILAstLanguage.cs

3
ILSpy/Languages/ILAstLanguage.cs

@ -157,7 +157,8 @@ namespace ICSharpCode.ILSpy @@ -157,7 +157,8 @@ namespace ICSharpCode.ILSpy
if (!method.HasBody)
return;
var typeSystem = new DecompilerTypeSystem(method.Module);
ILReader reader = new ILReader(typeSystem);
var specializingTypeSystem = typeSystem.GetSpecializingTypeSystem(new SimpleTypeResolveContext(typeSystem.Resolve(method)));
var reader = new ILReader(specializingTypeSystem);
reader.UseDebugSymbols = options.DecompilerSettings.UseDebugSymbols;
ILFunction il = reader.ReadIL(method.Body, options.CancellationToken);
ILTransformContext context = new ILTransformContext {

Loading…
Cancel
Save