Esempio n. 1
0
 public TypeCollector(TypeFactory factory, TypeStore store, Program program)
 {
     this.factory = factory;
     this.store   = store;
     this.program = program;
     this.asc     = new ExpressionTypeAscender(program.Platform, store, factory);
     this.desc    = new ExpressionTypeDescender(program, store, factory);
 }
 public void Setup()
 {
     this.m = new ExpressionEmitter();
     this.store = new TypeStore();
     this.factory = new TypeFactory();
     var arch = new FakeArchitecture();
     var platform = new DefaultPlatform(null, arch);
     this.exa = new ExpressionTypeAscender(platform, store, factory);
 }
 public void Setup()
 {
     this.m = new ExpressionEmitter();
     this.store = new TypeStore();
     this.factory = new TypeFactory();
     this.arch = new FakeArchitecture();
     this.program = new Program { Architecture = arch, Platform = new DefaultPlatform(null, arch) };
     this.exa = new ExpressionTypeAscender(program, store, factory);
     this.exd = new ExpressionTypeDescender(program, store, factory);
     store.EnsureExpressionTypeVariable(factory, program.Globals, "globals_t");
 }
Esempio n. 4
0
 public TypeCollector(
     TypeFactory factory, TypeStore store, Program program,
     DecompilerEventListener eventListener)
 {
     this.factory       = factory;
     this.store         = store;
     this.program       = program;
     this.asc           = new ExpressionTypeAscender(program, store, factory);
     this.desc          = new ExpressionTypeDescender(program, store, factory);
     this.eventListener = eventListener;
 }
Esempio n. 5
0
 public TypeCollector(
     TypeFactory factory,
     TypeStore store,
     Program program,
     DecompilerEventListener eventListener)
 {
     this.factory       = factory;
     this.store         = store;
     this.program       = program;
     this.eventListener = eventListener ?? throw new ArgumentNullException(nameof(eventListener));
     this.asc           = new ExpressionTypeAscender(program, store, factory);
     this.desc          = new ExpressionTypeDescender(program, store, factory);
 }
Esempio n. 6
0
 public TypeCollector(
     TypeFactory factory, 
     TypeStore store,
     Program program,
     DecompilerEventListener eventListener)
 {
     this.factory = factory;
     this.store = store;
     this.program = program;
     if (eventListener == null)
         throw new ArgumentNullException("eventListener");
     this.eventListener = eventListener;
     this.asc = new ExpressionTypeAscender(program, store, factory);
     this.desc = new ExpressionTypeDescender(program, store, factory);
 }