Example #1
0
 public DefaultGenerators(Ioc ioc)
 {
     ExpressionConstant = new ExpressionConstantCodeGenerator(ioc);
     GuidConstant       = new GuidConstantCodeGenerator(ioc);
     ResultConstant     = new ResultConstantCodeGenerator(ioc);
     ResultRegistration = new ResultRegistrationCodeGenerator(ioc);
     Property           = new PropertyCodeGenerator(ioc);
     Enum = new EnumCodeGenerator(ioc);
     ExplicitOffsetField = new FieldCodeGenerator(ioc, true);
     AutoLayoutField     = new FieldCodeGenerator(ioc, false);
     Struct                = new StructCodeGenerator(ioc);
     NativeStruct          = new NativeStructCodeGenerator(ioc);
     NativeInvocation      = new NativeInvocationCodeGenerator(ioc);
     Callable              = new CallableCodeGenerator(ioc);
     Method                = new MethodCodeGenerator(ioc);
     Function              = new FunctionCodeGenerator(ioc);
     FunctionImport        = new FunctionImportCodeGenerator(ioc);
     Interface             = new InterfaceCodeGenerator(ioc);
     Group                 = new GroupCodeGenerator(ioc);
     ShadowCallable        = new ShadowCallbackGenerator(ioc);
     ReverseCallableProlog = new ReverseCallablePrologCodeGenerator(ioc);
     Vtbl        = new VtblGenerator(ioc);
     Marshalling = new MarshallingRegistry(ioc);
     Config      = ioc.GeneratorConfig;
 }
 public void Initialize()
 {
     _generator = new MethodCodeGenerator();
 }