|
|
|
@ -121,7 +121,6 @@ namespace ICSharpCode.ILSpy
@@ -121,7 +121,6 @@ namespace ICSharpCode.ILSpy
|
|
|
|
|
reader.UseDebugSymbols = options.DecompilerSettings.UseDebugSymbols; |
|
|
|
|
var methodBody = module.Reader.GetMethodBody(methodDef.RelativeVirtualAddress); |
|
|
|
|
ILFunction il = reader.ReadIL((SRM.MethodDefinitionHandle)method.MetadataToken, methodBody, kind: ILFunctionKind.TopLevelFunction, cancellationToken: options.CancellationToken); |
|
|
|
|
var namespaces = new HashSet<string>(); |
|
|
|
|
var decompiler = new CSharpDecompiler(typeSystem, options.DecompilerSettings) { CancellationToken = options.CancellationToken }; |
|
|
|
|
ILTransformContext context = decompiler.CreateILTransformContext(il); |
|
|
|
|
context.Stepper.StepLimit = options.StepLimit; |
|
|
|
|