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();
            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();
     var prog = new Program { Architecture = arch , Platform = new DefaultPlatform(null,arch)};
     this.exa = new ExpressionTypeAscender(prog.Platform, store, factory);
     this.exd = new ExpressionTypeDescender(prog, store, factory);
     store.EnsureExpressionTypeVariable(factory, prog.Globals, "globals_t");
 }
Example #4
0
 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");
 }
Example #5
0
        public void Setup()
        {
            this.m       = new ExpressionEmitter();
            this.store   = new TypeStore();
            this.factory = new TypeFactory();
            var arch     = new FakeArchitecture(new ServiceContainer());
            var platform = new DefaultPlatform(null, arch);

            program = new Program {
                Architecture = arch, Platform = platform
            };
            this.exa = new ExpressionTypeAscender(program, store, factory);
        }