public void Return(ILocalIndexer index) { MethodContext.ReturnDeclared = true; GeneratedMethod.Return(() => index); }
public void WithArgument(ILocalIndexer variable) { this.variables.Add(variable); }
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; }