Example #1
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="DecompilerContext" /> class.
 /// </summary>
 /// <param name="decompiler">The decompiler.</param>
 /// <param name="flowAnalyzer"></param>
 /// <param name="asm">The asm.</param>
 public DecompilerContext(IPapyrusDecompiler decompiler, IFlowAnalyzer flowAnalyzer,
                          PapyrusAssemblyDefinition asm)
 {
     this.decompiler   = decompiler;
     this.flowAnalyzer = flowAnalyzer;
     this.asm          = asm;
     TempStringTable   = new PapyrusStringTable();
     codeBlocks        = new Map <int, PapyrusCodeBlock>();
     flowAnalyzer.SetContext(this);
 }
Example #2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="PapyrusDecompiler" /> class.
 /// </summary>
 /// <param name="asm">The asm.</param>
 public PapyrusDecompiler(PapyrusAssemblyDefinition asm)
 {
     this.asm      = asm;
     flowAnalyzer  = new PapyrusFlowAnalyzer();
     codeGenerator = new PapyrusCodeGenerator();
 }