Beispiel #1
0
        public GeneratedVariable Call(Func<MethodInfo> method, Func<List<IGeneratedParameter>> parameters)
        {
            var action = new CallAction(bundle, method, actions, this, parameters);
            actions.Add(action);

            return new GeneratedVariable(method().ReturnType, action.LocalIndex, actions, this);
        }
Beispiel #2
0
        public GeneratedVariable Call(Func<GeneratedMethod> method, Type returnType)
        {
            var action = new CallAction(bundle, method, actions, this, () => new List<GeneratedField>());
            actions.Add(action);

            return new GeneratedVariable(returnType, action.LocalIndex, actions, this);
        }
Beispiel #3
0
        public GeneratedVariable Call(Func<DelegateMethod> method, Func<List<GeneratedField>> parameters)
        {
            var action = new CallAction(bundle, method, actions, this, parameters);
            actions.Add(action);

            return new GeneratedVariable(method, action.LocalIndex, actions, this);
        }
Beispiel #4
0
        public ILocalIndexer Call(Func<MethodInfo> method, params ILocalIndexer[] variables)
        {
            var action = new CallAction(bundle, method, actions, this);

            foreach(ILocalIndexer variable in variables)
            {
                action.WithArgument(variable);
            }

            actions.Add(action);

            return new GeneratedVariable(method, action.LocalIndex, actions, this);
        }