|
|
|
@ -110,6 +110,7 @@ namespace ICSharpCode.ILSpy
@@ -110,6 +110,7 @@ namespace ICSharpCode.ILSpy
|
|
|
|
|
{ |
|
|
|
|
CSharpDecompiler decompiler = new CSharpDecompiler(module, module.GetAssemblyResolver(), options.DecompilerSettings); |
|
|
|
|
decompiler.CancellationToken = options.CancellationToken; |
|
|
|
|
decompiler.DebugInfoProvider = module.GetDebugInfoOrNull(); |
|
|
|
|
while (decompiler.AstTransforms.Count > transformCount) |
|
|
|
|
decompiler.AstTransforms.RemoveAt(decompiler.AstTransforms.Count - 1); |
|
|
|
|
return decompiler; |
|
|
|
|