Пример #1
0
        public AstMethodDefinition Decompile(MethodDefinition source)
        {
            ILtoTACTransformer  tacTransformer = new ILtoTACTransformer();
            ThreeAddressCode    tac            = tacTransformer.Decompile(source);
            TACtoASTTransformer astTransformer = new TACtoASTTransformer();

            return(astTransformer.Decompile(tac));
        }
Пример #2
0
    private static void PrintMethod(MethodDefinition methodDefinition, Gtk.TextView textView) {
      textView.Buffer.Clear();

      ThreeAddressCode tac = new ILtoTACTransformer().Decompile(methodDefinition);
      textView.Buffer.Text = tac.ToString();
    }