public static BlockStatement Decompile(this MethodBody body, ILanguage language, out DecompilationContext context, TypeSpecificContext typeContext = null) { if (typeContext == null) { V_0 = language.CreatePipeline(); } else { V_0 = language.CreatePipeline(new DecompilationContext(new MethodSpecificContext(body), typeContext, language)); } return(Extensions.RunPipeline(V_0, language, body, out context)); }
public static BlockStatement Decompile(this MethodBody body, ILanguage language, out DecompilationContext context, TypeSpecificContext typeContext = null) { DecompilationPipeline pipeline; if (typeContext != null) { pipeline = language.CreatePipeline(new DecompilationContext(new MethodSpecificContext(body), typeContext, language)); } else { pipeline = language.CreatePipeline(); } return RunPipeline(pipeline, language, body, out context); }
public static BlockStatement Decompile(this MethodBody body, ILanguage language, DecompilationContext context) { if (body != null) { dummyVar0 = body.get_Method(); } return(Extensions.RunPipeline(language.CreatePipeline(context), language, body, out context)); }
/// <summary> /// Decompiles <paramref name="body"/>, using the preset <paramref name="context"/>. /// </summary> /// <param name="body">The body of the method, to be decompiled.</param> /// <param name="language">The language to which is decompiled.</param> /// <param name="context">The context for the decompilation.</param> /// <returns>Returns the expression-statement tree, representing the decompiled method.</returns> public static BlockStatement Decompile(this MethodBody body, ILanguage language, DecompilationContext context) { MethodDefinition method = null; if (body != null) { method = body.Method; } DecompilationPipeline pipeline = language.CreatePipeline(context); return RunPipeline(pipeline, language, body, out context); }
public static BlockStatement Decompile(this MethodBody body, ILanguage language, out DecompilationContext context, TypeSpecificContext typeContext = null) { MethodDefinition method = null; if (body != null) { method = body.Method; } DecompilationPipeline pipeline; if (typeContext != null) { pipeline = language.CreatePipeline(method, new DecompilationContext(new MethodSpecificContext(body), typeContext)); } else { pipeline = language.CreatePipeline(method); } return(RunPipeline(pipeline, language, body, out context)); }
public static BlockStatement Decompile(this MethodBody body, ILanguage language) { return(RunPipeline(language.CreatePipeline(), body)); }