コード例 #1
0
ファイル: GeneratedDelegate.cs プロジェクト: rexwhitten/Siege
 public GeneratedDelegate(MethodBodyContext context, GeneratedMethod method, DelegateGenerator generator)
 {
     this.context = context;
     this.method = method;
     this.generator = generator;
 }
コード例 #2
0
ファイル: MethodBodyContext.cs プロジェクト: cbayles/Siege
        public GeneratedVariable CreateVariable(Func <BuilderBundle> variableType)
        {
            GeneratedMethod.AddLocal(variableType);

            return(new GeneratedVariable(variableType, GeneratedMethod.LocalCount - 1, TypeGenerationContext.TypeGenerationActions, GeneratedMethod));
        }
コード例 #3
0
 internal void SetMethod(GeneratedMethod method)
 {
     GeneratedMethod = method;
 }
コード例 #4
0
ファイル: MethodBodyContext.cs プロジェクト: cbayles/Siege
 public Func <ILocalIndexer> Instantiate(Func <BuilderBundle> type, Type[] constructorArguments)
 {
     return(() => new LocalIndexer(GeneratedMethod.Instantiate(type, constructorArguments)));
 }
コード例 #5
0
ファイル: MethodBodyContext.cs プロジェクト: cbayles/Siege
        public GeneratedArray CreateArray(Type variableType)
        {
            GeneratedMethod.AddLocal(variableType.MakeArrayType());

            return(new GeneratedArray(GeneratedMethod.LocalCount - 1, TypeGenerationContext.TypeGenerationActions, GeneratedMethod));
        }
コード例 #6
0
ファイル: MethodBodyContext.cs プロジェクト: cbayles/Siege
 public void TargettingSelf()
 {
     GeneratedMethod.TargettingSelf();
 }
コード例 #7
0
ファイル: MethodBodyContext.cs プロジェクト: cbayles/Siege
 public Func <ILocalIndexer> Instantiate(Type type, Type[] constructorArguments, ILocalIndexer[] arguments)
 {
     return(() => new LocalIndexer(GeneratedMethod.Instantiate(type, constructorArguments, arguments)));
 }
コード例 #8
0
ファイル: MethodBodyContext.cs プロジェクト: cbayles/Siege
 public void Return()
 {
     MethodContext.ReturnDeclared = true;
     GeneratedMethod.ReturnFrom();
 }
コード例 #9
0
ファイル: MethodBodyContext.cs プロジェクト: cbayles/Siege
 public Func <ILocalIndexer> InstantiateArray <TType>(int size)
 {
     return(() => new LocalIndexer(GeneratedMethod.InstantiateArray(typeof(TType), size)));
 }
コード例 #10
0
ファイル: MethodBodyContext.cs プロジェクト: cbayles/Siege
 public ILocalIndexer Call(Func <GeneratedMethod> info, Func <List <GeneratedField> > fields)
 {
     return(GeneratedMethod.Call(info, fields));
 }
コード例 #11
0
ファイル: MethodBodyContext.cs プロジェクト: cbayles/Siege
 public void Return(ILocalIndexer index)
 {
     MethodContext.ReturnDeclared = true;
     GeneratedMethod.Return(() => index);
 }
コード例 #12
0
ファイル: MethodBodyContext.cs プロジェクト: cbayles/Siege
 public ILocalIndexer Call(GeneratedMethod info, Type returnType)
 {
     return(GeneratedMethod.Call(() => info, returnType));
 }
コード例 #13
0
ファイル: MethodBodyContext.cs プロジェクト: cbayles/Siege
 public ILocalIndexer Call(Func <MethodInfo> info, Func <List <IGeneratedParameter> > parameters)
 {
     return(GeneratedMethod.Call(info, parameters));
 }
コード例 #14
0
ファイル: MethodBodyContext.cs プロジェクト: cbayles/Siege
 public ILocalIndexer CallBase(MethodInfo info)
 {
     return(GeneratedMethod.CallBase(info, TypeGenerationContext.BaseType));
 }
コード例 #15
0
 internal void SetMethod(GeneratedMethod method)
 {
     GeneratedMethod = method;
 }
コード例 #16
0
ファイル: MethodBodyContext.cs プロジェクト: cbayles/Siege
 public Func <ILocalIndexer> Instantiate(Func <ConstructorBuilder> type)
 {
     return(() => new LocalIndexer(GeneratedMethod.Instantiate(type)));
 }
コード例 #17
0
 public OverrideMethodContext(MethodInfo info, GeneratedMethod method, BaseTypeGenerationContext typeGenerationContext)
     : base(typeGenerationContext)
 {
     this.info = info;
     SetMethod(method);
 }
コード例 #18
0
 public OverrideMethodContext(MethodInfo info, GeneratedMethod method, BaseTypeGenerationContext typeGenerationContext) : base(typeGenerationContext)
 {
     this.info = info;
     SetMethod(method);
 }