Example #1
0
 public BuiltinMethodData(TypeManager typeManager,
                          MethodInfo methodInfo)
     : base(typeManager, methodInfo)
 {
     parameterList =
         new BuiltinMethodParameterList(typeManager, methodInfo);
 }
Example #2
0
 public BuiltinMethodParameterList(TypeManager typeManager,
                                   MethodBase methodBase)
 {
     this.typeManager = typeManager;
     this.methodBase = methodBase;
     parameters = null;
 }
Example #3
0
 public Program(string fileName, Target target)
 {
     string baseName = Path.GetFileNameWithoutExtension(fileName);
     AppDomain domain = AppDomain.CurrentDomain;
     AssemblyName assemblyName = new AssemblyName();
     assemblyName.Name = baseName;
     assembly =
         domain.DefineDynamicAssembly(assemblyName,
                                      AssemblyBuilderAccess.RunAndSave);
     module = assembly.DefineDynamicModule(baseName, fileName);
     typeManager = new TypeManager();
     typeManager.AddModule(module);
     this.target = target;
 }
Example #4
0
 public UserDefinedConstructorData(TypeManager typeManager,
                                   ConstructorBuilder constructorBuilder)
     : base(typeManager, constructorBuilder)
 {
     parameterList = new UserDefinedParameterList();
 }
Example #5
0
 public UserDefinedParameterData(TypeManager typeManager,
                                 ParameterInfo rawParameter,
                                 ArgumentMode mode)
     : base(typeManager, rawParameter)
 {
     this.mode = mode;
 }
Example #6
0
 public UserDefinedParameterData(TypeManager typeManager,
                                 ParameterInfo rawParameter)
     : this(typeManager, rawParameter, ArgumentMode.In)
 {
 }
Example #7
0
 public PredefinedParameterData(TypeManager typeManager,
                                ParameterInfo rawParameter)
     : base(typeManager, rawParameter)
 {
 }
Example #8
0
 public PredefinedParameterList(TypeManager typeManager,
                                MethodBase methodBase)
 {
     this.typeManager = typeManager;
     this.methodBase = methodBase;
     parameters = null;
 }
Example #9
0
 public GenericInstanceMethodData(TypeManager typeManager,
                                  MethodInfo methodInfo)
     : base(typeManager, methodInfo)
 {
     genericMethodDefinition = null;
 }
Example #10
0
 public ParameterData(TypeManager typeManager,
                      ParameterInfo rawParameter)
 {
     this.typeManager = typeManager;
     this.rawParameter = rawParameter;
 }
Example #11
0
 public override void VisitProgram(Program program)
 {
     this.program = program;
     typeManager = program.TypeManager;
     program.Children.Accept(this);
 }
Example #12
0
 public UserDefinedMethodData(TypeManager typeManager,
                              MethodBuilder methodBuilder)
     : base(typeManager, methodBuilder)
 {
     parameterList = new UserDefinedParameterList();
 }
Example #13
0
 public PredefinedMethodData(TypeManager typeManager,
                             MethodInfo methodInfo)
     : base(typeManager, methodInfo)
 {
     parameterList = new PredefinedParameterList(typeManager,
                                                 methodInfo);
 }
Example #14
0
 public PredefinedConstructorData(TypeManager typeManager,
                                  ConstructorInfo constructorInfo)
     : base(typeManager, constructorInfo)
 {
     parameterList = new PredefinedParameterList(typeManager,
                                                 constructorInfo);
 }
Example #15
0
 protected ConstructorData(TypeManager typeManager,
                           ConstructorInfo constructorInfo)
     : base(typeManager, constructorInfo)
 {
 }
Example #16
0
 protected MethodData(TypeManager typeManager,
                      MethodInfo methodInfo)
     : base(typeManager, methodInfo)
 {
 }
Example #17
0
 protected MethodBaseData(TypeManager typeManager,
                          MethodBase methodBase)
 {
     this.typeManager = typeManager;
     this.methodBase = methodBase;
 }