예제 #1
0
 public void Return(ILocalIndexer index)
 {
     MethodContext.ReturnDeclared = true;
     GeneratedMethod.Return(() => index);
 }
예제 #2
0
 public void WithArgument(ILocalIndexer variable)
 {
     this.variables.Add(variable);
 }
예제 #3
0
 public void WithArgument(ILocalIndexer variable)
 {
     this.variables.Add(variable);
 }
예제 #4
0
        public int Instantiate(Type type, Type[] constructorArguments, ILocalIndexer[] arguments)
        {
            foreach (ILocalIndexer arg in arguments)
            {
                actions.Add(new VariableLoadAction(this, arg.LocalIndex));
            }

            actions.Add(new InstantiationAction(bundle, type, constructorArguments));

            return LocalCount - 1;
        }